Skip to content

Commit

Permalink
System: Fix GPU usage disappearing on renderer change
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 20, 2024
1 parent be268d8 commit b62e587
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b62e587

Please sign in to comment.