From be9a415157bc553b4c29172426e60faec16cc320 Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Mon, 21 Jul 2025 13:44:26 +0200 Subject: [PATCH] Revert [Android] 0 FPS Error fix for certain titles. revert [android] Fix 0fps errors on DKCR, Subnautica, and Ori 2 (#79) Co-authored-by: Pavel Barabanov Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/79 Option reverted due problems caused with another games and make some advances worst when testing, if necessary it's going to be refined to be converted into a toggle. --- src/video_core/fence_manager.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/video_core/fence_manager.h b/src/video_core/fence_manager.h index a2411af63c..2135f1f2da 100644 --- a/src/video_core/fence_manager.h +++ b/src/video_core/fence_manager.h @@ -1,6 +1,3 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project -// SPDX-License-Identifier: GPL-3.0-or-later - // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later @@ -76,27 +73,15 @@ public: void SignalFence(std::function&& func) { bool delay_fence = Settings::IsGPULevelHigh(); - #ifdef __ANDROID__ - if (!delay_fence) { - TryReleasePendingFences(); - } - #else if constexpr (!can_async_check) { TryReleasePendingFences(); } - #endif const bool should_flush = ShouldFlush(); CommitAsyncFlushes(); TFence new_fence = CreateFence(!should_flush); - #ifdef __ANDROID__ - if (delay_fence) { - guard.lock(); - } - #else if constexpr (can_async_check) { guard.lock(); } - #endif if (delay_fence) { uncommitted_operations.emplace_back(std::move(func)); } @@ -109,17 +94,10 @@ public: if (should_flush) { rasterizer.FlushCommands(); } - #ifdef __ANDROID__ - if (delay_fence) { - guard.unlock(); - cv.notify_all(); - } - #else if constexpr (can_async_check) { guard.unlock(); cv.notify_all(); } - #endif rasterizer.InvalidateGPUCache(); }