summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-20 22:56:58 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-27 02:22:03 +0100
commitb285c2a4ed29a126b5bcfe46e2784bd1870bdf82 (patch)
treea671ac87427fb63a64f51be260928cb39b8d3737 /src/core/core.cpp
parentQt: Add tooltips to status bar displays (diff)
downloadyuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.gz
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.bz2
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.lz
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.xz
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.zst
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.zip
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() {
}
PerfStats::Results System::GetAndResetPerfStats() {
- auto perf_stats = this->perf_stats.Lock();
- return perf_stats->GetAndResetStats(CoreTiming::GetGlobalTimeUs());
+ return perf_stats.GetAndResetStats(CoreTiming::GetGlobalTimeUs());
}
void System::Reschedule() {
@@ -147,7 +146,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
// Reset counters and set time origin to current frame
GetAndResetPerfStats();
- perf_stats.Lock()->BeginSystemFrame();
+ perf_stats.BeginSystemFrame();
return ResultStatus::Success;
}