diff options
| author | 2017-02-26 17:51:15 -0800 | |
|---|---|---|
| committer | 2017-02-26 17:51:15 -0800 | |
| commit | b250ce21b9a62cb573540fdb14f30c28fa66e6ad (patch) | |
| tree | ef55a0cd4a531a097de2152f563d712551972c4b /src/video_core | |
| parent | Merge pull request #2595 from jroweboy/patch (diff) | |
| parent | PerfStats: Re-order and document members better (diff) | |
| download | yuzu-b250ce21b9a62cb573540fdb14f30c28fa66e6ad.tar.gz yuzu-b250ce21b9a62cb573540fdb14f30c28fa66e6ad.tar.xz yuzu-b250ce21b9a62cb573540fdb14f30c28fa66e6ad.zip | |
Merge pull request #2587 from yuriks/status-bar
Replace built-in Profiler with indicators in status bar
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 2aa90e5c1..e19375466 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | #include "common/assert.h" | 10 | #include "common/assert.h" |
| 11 | #include "common/bit_field.h" | 11 | #include "common/bit_field.h" |
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/profiler_reporting.h" | 13 | #include "core/core.h" |
| 14 | #include "common/synchronized_wrapper.h" | 14 | #include "core/core_timing.h" |
| 15 | #include "core/frontend/emu_window.h" | 15 | #include "core/frontend/emu_window.h" |
| 16 | #include "core/hw/gpu.h" | 16 | #include "core/hw/gpu.h" |
| 17 | #include "core/hw/hw.h" | 17 | #include "core/hw/hw.h" |
| @@ -145,21 +145,16 @@ void RendererOpenGL::SwapBuffers() { | |||
| 145 | 145 | ||
| 146 | DrawScreens(); | 146 | DrawScreens(); |
| 147 | 147 | ||
| 148 | auto& profiler = Common::Profiling::GetProfilingManager(); | 148 | Core::System::GetInstance().perf_stats.EndSystemFrame(); |
| 149 | profiler.FinishFrame(); | ||
| 150 | { | ||
| 151 | auto aggregator = Common::Profiling::GetTimingResultsAggregator(); | ||
| 152 | aggregator->AddFrame(profiler.GetPreviousFrameResults()); | ||
| 153 | } | ||
| 154 | 149 | ||
| 155 | // Swap buffers | 150 | // Swap buffers |
| 156 | render_window->PollEvents(); | 151 | render_window->PollEvents(); |
| 157 | render_window->SwapBuffers(); | 152 | render_window->SwapBuffers(); |
| 158 | 153 | ||
| 159 | prev_state.Apply(); | 154 | Core::System::GetInstance().frame_limiter.DoFrameLimiting(CoreTiming::GetGlobalTimeUs()); |
| 160 | 155 | Core::System::GetInstance().perf_stats.BeginSystemFrame(); | |
| 161 | profiler.BeginFrame(); | ||
| 162 | 156 | ||
| 157 | prev_state.Apply(); | ||
| 163 | RefreshRasterizerSetting(); | 158 | RefreshRasterizerSetting(); |
| 164 | 159 | ||
| 165 | if (Pica::g_debug_context && Pica::g_debug_context->recorder) { | 160 | if (Pica::g_debug_context && Pica::g_debug_context->recorder) { |