System: Fix GPU usage disappearing on renderer change

This commit is contained in:
Stenzek 2024-10-21 00:12:20 +10:00
parent be268d8bf1
commit b62e58776e
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -2054,9 +2054,6 @@ bool System::Initialize(bool force_software_renderer, bool fullscreen, Error* er
s_cpu_thread_handle = Threading::ThreadHandle::GetForCallingThread(); s_cpu_thread_handle = Threading::ThreadHandle::GetForCallingThread();
if (g_settings.display_show_gpu_usage)
g_gpu_device->SetGPUTimingEnabled(true);
UpdateThrottlePeriod(); UpdateThrottlePeriod();
UpdateMemorySaveStateSettings(); UpdateMemorySaveStateSettings();
return true; 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; return true;
} }