summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-18 20:28:50 -0400
committerGravatar bunnei2018-04-18 20:28:50 -0400
commitde185921798d7b4b07afb0153781c8ece70e100f (patch)
tree8bdf91a803224e2de3b3486844b8acb461cbac60 /src
parentMerge pull request #346 from bunnei/misc-gpu-improvements (diff)
downloadyuzu-de185921798d7b4b07afb0153781c8ece70e100f.tar.gz
yuzu-de185921798d7b4b07afb0153781c8ece70e100f.tar.xz
yuzu-de185921798d7b4b07afb0153781c8ece70e100f.zip
nvflinger: Call MicroProfileFlip on NVFlinger::Compose.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 0d30f54dc..ee1bf0404 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -5,6 +5,7 @@
5#include <algorithm> 5#include <algorithm>
6 6
7#include "common/alignment.h" 7#include "common/alignment.h"
8#include "common/microprofile.h"
8#include "common/scope_exit.h" 9#include "common/scope_exit.h"
9#include "core/core.h" 10#include "core/core.h"
10#include "core/core_timing.h" 11#include "core/core_timing.h"
@@ -128,6 +129,8 @@ void NVFlinger::Compose() {
128 // Search for a queued buffer and acquire it 129 // Search for a queued buffer and acquire it
129 auto buffer = buffer_queue->AcquireBuffer(); 130 auto buffer = buffer_queue->AcquireBuffer();
130 131
132 MicroProfileFlip();
133
131 if (buffer == boost::none) { 134 if (buffer == boost::none) {
132 // There was no queued buffer to draw, render previous frame 135 // There was no queued buffer to draw, render previous frame
133 Core::System::GetInstance().perf_stats.EndGameFrame(); 136 Core::System::GetInstance().perf_stats.EndGameFrame();