summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-04-19 20:18:47 +0200
committerGitHub <noreply@github.com>2018-04-19 20:18:47 +0200
commite90a12f80c72244c74b39eaff38f0122370b7bdb (patch)
treefd173d6393151d4bf51d8fd6e6c2053f3e40fc59
parentMerge pull request #353 from Subv/compressed_formats (diff)
parentnvflinger: Call MicroProfileFlip on NVFlinger::Compose. (diff)
downloadyuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar
yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.gz
yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.bz2
yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.lz
yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.xz
yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.tar.zst
yuzu-e90a12f80c72244c74b39eaff38f0122370b7bdb.zip
-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 @@
#include <algorithm>
#include "common/alignment.h"
+#include "common/microprofile.h"
#include "common/scope_exit.h"
#include "core/core.h"
#include "core/core_timing.h"
@@ -128,6 +129,8 @@ void NVFlinger::Compose() {
// Search for a queued buffer and acquire it
auto buffer = buffer_queue->AcquireBuffer();
+ MicroProfileFlip();
+
if (buffer == boost::none) {
// There was no queued buffer to draw, render previous frame
Core::System::GetInstance().perf_stats.EndGameFrame();