diff options
| author | 2017-02-20 13:56:58 -0800 | |
|---|---|---|
| committer | 2017-02-26 17:22:03 -0800 | |
| commit | b285c2a4ed29a126b5bcfe46e2784bd1870bdf82 (patch) | |
| tree | a671ac87427fb63a64f51be260928cb39b8d3737 /src/core/hle | |
| parent | Qt: Add tooltips to status bar displays (diff) | |
| download | yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.gz yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.xz yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.zip | |
Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/gsp_gpu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index 67bab38da..097ed87e4 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp | |||
| @@ -281,8 +281,7 @@ ResultCode SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) { | |||
| 281 | 281 | ||
| 282 | if (screen_id == 0) { | 282 | if (screen_id == 0) { |
| 283 | MicroProfileFlip(); | 283 | MicroProfileFlip(); |
| 284 | auto perf_stats = Core::System::GetInstance().perf_stats.Lock(); | 284 | Core::System::GetInstance().perf_stats.EndGameFrame(); |
| 285 | perf_stats->EndGameFrame(); | ||
| 286 | } | 285 | } |
| 287 | 286 | ||
| 288 | return RESULT_SUCCESS; | 287 | return RESULT_SUCCESS; |