summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar James Rowe2018-02-14 10:16:39 -0700
committerGravatar James Rowe2018-02-14 10:16:39 -0700
commit61c39f0fdd786bffc79cfabc4a1d9ac9f0af480e (patch)
tree42e453b7c1f85e60a222a7e66295d53f809df7fe /src/core
parentMerge pull request #190 from bunnei/fix-qt-waittree (diff)
downloadyuzu-61c39f0fdd786bffc79cfabc4a1d9ac9f0af480e.tar.gz
yuzu-61c39f0fdd786bffc79cfabc4a1d9ac9f0af480e.tar.xz
yuzu-61c39f0fdd786bffc79cfabc4a1d9ac9f0af480e.zip
Fix fps counter to correctly measure frame end when there was no frame to draw
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 2089462b7..a54239b0f 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -6,6 +6,7 @@
6 6
7#include "common/alignment.h" 7#include "common/alignment.h"
8#include "common/scope_exit.h" 8#include "common/scope_exit.h"
9#include "core/core.h"
9#include "core/core_timing.h" 10#include "core/core_timing.h"
10#include "core/hle/service/nvdrv/devices/nvdisp_disp0.h" 11#include "core/hle/service/nvdrv/devices/nvdisp_disp0.h"
11#include "core/hle/service/nvdrv/nvdrv.h" 12#include "core/hle/service/nvdrv/nvdrv.h"
@@ -129,6 +130,7 @@ void NVFlinger::Compose() {
129 130
130 if (buffer == boost::none) { 131 if (buffer == boost::none) {
131 // There was no queued buffer to draw, render previous frame 132 // There was no queued buffer to draw, render previous frame
133 Core::System::GetInstance().perf_stats.EndGameFrame();
132 VideoCore::g_renderer->SwapBuffers({}); 134 VideoCore::g_renderer->SwapBuffers({});
133 continue; 135 continue;
134 } 136 }