mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-19 04:18:06 +00:00
[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:
parent
7249bc0d22
commit
f6b6a856a4
25 changed files with 61 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue