mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 08:27:53 +00:00
[android] remove early release fences option (#186)
Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/186 Reviewed-by: Shinmegumi <shinmegumi@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
This commit is contained in:
parent
1f34d836b4
commit
e7becc15b4
29 changed files with 0 additions and 85 deletions
|
@ -76,27 +76,15 @@ public:
|
|||
|
||||
void SignalFence(std::function<void()>&& func) {
|
||||
bool delay_fence = Settings::IsGPULevelHigh();
|
||||
#ifdef __ANDROID__
|
||||
if (!delay_fence && Settings::values.early_release_fences.GetValue()) {
|
||||
TryReleasePendingFences<false>();
|
||||
}
|
||||
#else
|
||||
if constexpr (!can_async_check) {
|
||||
TryReleasePendingFences<false>();
|
||||
}
|
||||
#endif
|
||||
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));
|
||||
}
|
||||
|
@ -109,17 +97,10 @@ 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