From 976d9ef43c6eb431a1963a2e5857c100eeacd952 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Thu, 26 Sep 2019 08:46:22 -0400 Subject: NvFlinger: Don't swap buffers if a frame is missing and always trigger event in sync gpu. --- src/core/hle/service/nvflinger/nvflinger.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/hle') diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 86a90526c..3c08ac9a3 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp @@ -203,7 +203,9 @@ void NVFlinger::Compose() { if (!buffer) { // There was no queued buffer to draw, render previous frame - system.GPU().SwapBuffers({}); + auto& gpu = system.GPU(); + // Always trigger on sync GPU. + trigger_event = !gpu.IsAsync(); continue; } -- cgit v1.2.3