From cc67e49563096e4367881e8bbe4554f1a7d21595 Mon Sep 17 00:00:00 2001 From: neonloop Date: Sun, 14 Mar 2021 18:54:30 +0000 Subject: Adds frameskip based on free audio buffer space --- plugins/gpulib/gpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/gpulib') diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index ed37b71..cffb97d 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -97,7 +97,9 @@ static noinline void decide_frameskip(void) gpu.frameskip.frame_ready = 1; } - if (!gpu.frameskip.active && *gpu.frameskip.advice) + if (gpu.frameskip.set < 0 && gpu.frameskip.cnt < 2 && *gpu.frameskip.advice) + gpu.frameskip.active = 1; + else if (!gpu.frameskip.active && *gpu.frameskip.advice) gpu.frameskip.active = 1; else if (gpu.frameskip.set > 0 && gpu.frameskip.cnt < gpu.frameskip.set) gpu.frameskip.active = 1; -- cgit v1.2.3