summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-03-12 17:14:03 +0100
committerGitHub <noreply@github.com>2020-03-12 17:14:03 +0100
commitca2d228c9d72b7660b2a305674c1a25019e638cd (patch)
treee29cd00c2d0de9e1d35388aba070d0ef0b3b7f8f /src
parentMerge pull request #3496 from vitor-k/remove-enum (diff)
parentNVFlinger: Do the microprofile Flip after processing a valid frame. (diff)
downloadyuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.tar
yuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.tar.gz
yuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.tar.bz2
yuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.tar.lz
yuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.tar.xz
yuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.tar.zst
yuzu-ca2d228c9d72b7660b2a305674c1a25019e638cd.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 134152210..437bc5dee 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -191,8 +191,6 @@ void NVFlinger::Compose() {
// Search for a queued buffer and acquire it
auto buffer = buffer_queue.AcquireBuffer();
- MicroProfileFlip();
-
if (!buffer) {
continue;
}
@@ -206,6 +204,8 @@ void NVFlinger::Compose() {
gpu.WaitFence(fence.id, fence.value);
}
+ MicroProfileFlip();
+
// Now send the buffer to the GPU for drawing.
// TODO(Subv): Support more than just disp0. The display device selection is probably based
// on which display we're drawing (Default, Internal, External, etc)