summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index ca2c28ce4..140ff6451 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -110,8 +110,7 @@ void System::PrepareReschedule() {
110} 110}
111 111
112PerfStats::Results System::GetAndResetPerfStats() { 112PerfStats::Results System::GetAndResetPerfStats() {
113 auto perf_stats = this->perf_stats.Lock(); 113 return perf_stats.GetAndResetStats(CoreTiming::GetGlobalTimeUs());
114 return perf_stats->GetAndResetStats(CoreTiming::GetGlobalTimeUs());
115} 114}
116 115
117void System::Reschedule() { 116void System::Reschedule() {
@@ -147,7 +146,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
147 146
148 // Reset counters and set time origin to current frame 147 // Reset counters and set time origin to current frame
149 GetAndResetPerfStats(); 148 GetAndResetPerfStats();
150 perf_stats.Lock()->BeginSystemFrame(); 149 perf_stats.BeginSystemFrame();
151 150
152 return ResultStatus::Success; 151 return ResultStatus::Success;
153} 152}