Use up to 8 NCNN GPU threads if support by hardware

This commit is contained in:
n00mkrad
2023-02-17 21:54:33 +01:00
parent 46d3edb4e4
commit fbee4d8c06

View File

@@ -39,9 +39,9 @@ namespace Flowframes.Utilities
public static async Task<int> GetRifeNcnnGpuThreads(Size res, int gpuId, AI ai)
{
int threads = 3;
if (res.Width * res.Height > 2560 * 1440) threads = 2;
if (res.Width * res.Height > 3840 * 2160) threads = 1;
int threads = 8;
//if (res.Width * res.Height > 2560 * 1440) threads = 4;
// if (res.Width * res.Height > 3840 * 2160) threads = 1;
if (threads != 1)
{