From b62e58776e7fd751d632061221ef625c5a391a39 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 21 Oct 2024 00:12:20 +1000 Subject: [PATCH] System: Fix GPU usage disappearing on renderer change --- src/core/system.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index 379978ffe..d5cd84820 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -2054,9 +2054,6 @@ bool System::Initialize(bool force_software_renderer, bool fullscreen, Error* er s_cpu_thread_handle = Threading::ThreadHandle::GetForCallingThread(); - if (g_settings.display_show_gpu_usage) - g_gpu_device->SetGPUTimingEnabled(true); - UpdateThrottlePeriod(); UpdateMemorySaveStateSettings(); return true; @@ -2539,6 +2536,9 @@ bool System::CreateGPU(GPURenderer renderer, bool is_switching, bool fullscreen, } } + if (g_settings.display_show_gpu_usage) + g_gpu_device->SetGPUTimingEnabled(true); + return true; }