mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-04 18:02:25 -07:00
Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
This commit is contained in:
@@ -145,10 +145,7 @@ void RendererOpenGL::SwapBuffers() {
|
||||
|
||||
DrawScreens();
|
||||
|
||||
{
|
||||
auto perf_stats = Core::System::GetInstance().perf_stats.Lock();
|
||||
perf_stats->EndSystemFrame();
|
||||
}
|
||||
Core::System::GetInstance().perf_stats.EndSystemFrame();
|
||||
|
||||
// Swap buffers
|
||||
render_window->PollEvents();
|
||||
@@ -156,10 +153,7 @@ void RendererOpenGL::SwapBuffers() {
|
||||
|
||||
prev_state.Apply();
|
||||
|
||||
{
|
||||
auto perf_stats = Core::System::GetInstance().perf_stats.Lock();
|
||||
perf_stats->BeginSystemFrame();
|
||||
}
|
||||
Core::System::GetInstance().perf_stats.BeginSystemFrame();
|
||||
|
||||
RefreshRasterizerSetting();
|
||||
|
||||
|
Reference in New Issue
Block a user