Fix inversion of toggle for early fences
All checks were successful
eden-license / license-header (pull_request) Successful in 25s

This should fix performance regressions in games that didn't need this and fix it to work with the games it is intended to be used for.

Signed-off-by: Shinmegumi <shinmegumi@eden-emu.dev>
This commit is contained in:
Shinmegumi 2025-08-01 19:05:59 +02:00
parent 623baac26b
commit e24b83adb9

View file

@ -89,7 +89,7 @@ public:
CommitAsyncFlushes(); CommitAsyncFlushes();
TFence new_fence = CreateFence(!should_flush); TFence new_fence = CreateFence(!should_flush);
#ifdef __ANDROID__ #ifdef __ANDROID__
if (delay_fence && Settings::values.early_release_fences.GetValue()) { if (delay_fence && !Settings::values.early_release_fences.GetValue()) {
guard.lock(); guard.lock();
} }
#else #else
@ -110,7 +110,7 @@ public:
rasterizer.FlushCommands(); rasterizer.FlushCommands();
} }
#ifdef __ANDROID__ #ifdef __ANDROID__
if (delay_fence && Settings::values.early_release_fences.GetValue()) { if (delay_fence && !Settings::values.early_release_fences.GetValue()) {
guard.unlock(); guard.unlock();
cv.notify_all(); cv.notify_all();
} }