diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-02-10 21:54:42 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 01:54:42 +0100 |
| commit | c465d771dd099b0ffbb0792b3e74148e01259f19 (patch) | |
| tree | bec6a92ed01427f2300c417ed26de0b9d2361920 /Ryujinx.Graphics.Nvdec.Vp9/Types | |
| parent | 172ec326e598971f2251e5acdcfa65faa7291396 (diff) | |
Enable multithreaded VP9 decoding (#2009)
* Enable multithreaded VP9 decoding
* Limit the number of threads used for video decoding
Diffstat (limited to 'Ryujinx.Graphics.Nvdec.Vp9/Types')
| -rw-r--r-- | Ryujinx.Graphics.Nvdec.Vp9/Types/Vp9Common.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Nvdec.Vp9/Types/Vp9Common.cs b/Ryujinx.Graphics.Nvdec.Vp9/Types/Vp9Common.cs index 4ca05954..faadd349 100644 --- a/Ryujinx.Graphics.Nvdec.Vp9/Types/Vp9Common.cs +++ b/Ryujinx.Graphics.Nvdec.Vp9/Types/Vp9Common.cs @@ -127,9 +127,9 @@ namespace Ryujinx.Graphics.Nvdec.Vp9.Types MBs = MbRows * MbCols; } - public void AllocTileWorkerData(MemoryAllocator allocator, int tileCols, int tileRows) + public void AllocTileWorkerData(MemoryAllocator allocator, int tileCols, int tileRows, int maxThreads) { - TileWorkerData = allocator.Allocate<TileWorkerData>(tileCols * tileRows); + TileWorkerData = allocator.Allocate<TileWorkerData>(tileCols * tileRows + (maxThreads > 1 ? maxThreads : 0)); } public void FreeTileWorkerData(MemoryAllocator allocator) |
