[android] Early release fences option fix and translations (#167)

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/167
Co-authored-by: Pavel Barabanov <pavelbarabanov94@gmail.com>
Co-committed-by: Pavel Barabanov <pavelbarabanov94@gmail.com>
This commit is contained in:
Pavel Barabanov 2025-07-30 23:51:20 +02:00 committed by crueter
parent 7249bc0d22
commit f6b6a856a4
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
25 changed files with 61 additions and 2 deletions

View file

@ -88,9 +88,15 @@ public:
const bool should_flush = ShouldFlush();
CommitAsyncFlushes();
TFence new_fence = CreateFence(!should_flush);
#ifdef __ANDROID__
if (delay_fence && Settings::values.early_release_fences.GetValue()) {
guard.lock();
}
#else
if constexpr (can_async_check) {
guard.lock();
}
#endif
if (delay_fence) {
uncommitted_operations.emplace_back(std::move(func));
}
@ -103,10 +109,17 @@ public:
if (should_flush) {
rasterizer.FlushCommands();
}
#ifdef __ANDROID__
if (delay_fence && Settings::values.early_release_fences.GetValue()) {
guard.unlock();
cv.notify_all();
}
#else
if constexpr (can_async_check) {
guard.unlock();
cv.notify_all();
}
#endif
rasterizer.InvalidateGPUCache();
}