diff options
author | neonloop | 2021-03-14 18:54:30 +0000 |
---|---|---|
committer | neonloop | 2021-03-14 19:28:36 +0000 |
commit | cc67e49563096e4367881e8bbe4554f1a7d21595 (patch) | |
tree | 393883d80d2b417d67a4fb2150dbd37392017802 /plugins/gpulib | |
parent | 34c62fb129becec9e61a48227d9ed89867cdd470 (diff) | |
download | pcsx_rearmed-cc67e49563096e4367881e8bbe4554f1a7d21595.tar.gz pcsx_rearmed-cc67e49563096e4367881e8bbe4554f1a7d21595.tar.bz2 pcsx_rearmed-cc67e49563096e4367881e8bbe4554f1a7d21595.zip |
Adds frameskip based on free audio buffer space
Diffstat (limited to 'plugins/gpulib')
-rw-r--r-- | plugins/gpulib/gpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |