mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Use up to 8 NCNN GPU threads if support by hardware
This commit is contained in:
@@ -39,9 +39,9 @@ namespace Flowframes.Utilities
|
|||||||
|
|
||||||
public static async Task<int> GetRifeNcnnGpuThreads(Size res, int gpuId, AI ai)
|
public static async Task<int> GetRifeNcnnGpuThreads(Size res, int gpuId, AI ai)
|
||||||
{
|
{
|
||||||
int threads = 3;
|
int threads = 8;
|
||||||
if (res.Width * res.Height > 2560 * 1440) threads = 2;
|
//if (res.Width * res.Height > 2560 * 1440) threads = 4;
|
||||||
if (res.Width * res.Height > 3840 * 2160) threads = 1;
|
// if (res.Width * res.Height > 3840 * 2160) threads = 1;
|
||||||
|
|
||||||
if (threads != 1)
|
if (threads != 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user