summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-31 17:31:20 +0200
committerGitHub <noreply@github.com>2018-08-31 17:31:20 +0200
commitf08d24e9c0a8dd7920ca5db5a5765b867eb1d714 (patch)
treef2b144f08f5881d4e1174d9eb0184cf6548f20ce /src/video_core
parentMerge pull request #1207 from degasus/hotfix (diff)
parentcore: Make the main System class use the PImpl idiom (diff)
downloadyuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.tar
yuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.tar.gz
yuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.tar.bz2
yuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.tar.lz
yuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.tar.xz
yuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.tar.zst
yuzu-f08d24e9c0a8dd7920ca5db5a5765b867eb1d714.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 73d6419b4..3c4a9f17c 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -14,6 +14,7 @@
#include "core/core_timing.h"
#include "core/frontend/emu_window.h"
#include "core/memory.h"
+#include "core/perf_stats.h"
#include "core/settings.h"
#include "core/tracer/recorder.h"
#include "video_core/renderer_opengl/gl_rasterizer.h"
@@ -115,7 +116,7 @@ RendererOpenGL::~RendererOpenGL() = default;
void RendererOpenGL::SwapBuffers(boost::optional<const Tegra::FramebufferConfig&> framebuffer) {
ScopeAcquireGLContext acquire_context{render_window};
- Core::System::GetInstance().perf_stats.EndSystemFrame();
+ Core::System::GetInstance().GetPerfStats().EndSystemFrame();
// Maintain the rasterizer's state as a priority
OpenGLState prev_state = OpenGLState::GetCurState();
@@ -140,8 +141,8 @@ void RendererOpenGL::SwapBuffers(boost::optional<const Tegra::FramebufferConfig&
render_window.PollEvents();
- Core::System::GetInstance().frame_limiter.DoFrameLimiting(CoreTiming::GetGlobalTimeUs());
- Core::System::GetInstance().perf_stats.BeginSystemFrame();
+ Core::System::GetInstance().FrameLimiter().DoFrameLimiting(CoreTiming::GetGlobalTimeUs());
+ Core::System::GetInstance().GetPerfStats().BeginSystemFrame();
// Restore the rasterizer state
prev_state.Apply();