diff options
| author | 2019-09-26 08:46:22 -0400 | |
|---|---|---|
| committer | 2019-10-04 19:59:49 -0400 | |
| commit | 976d9ef43c6eb431a1963a2e5857c100eeacd952 (patch) | |
| tree | 844b557422b62ac42e8f49117d2409260e351af4 /src | |
| parent | GPU_Async: Correct fences, display events and more. (diff) | |
| download | yuzu-976d9ef43c6eb431a1963a2e5857c100eeacd952.tar.gz yuzu-976d9ef43c6eb431a1963a2e5857c100eeacd952.tar.xz yuzu-976d9ef43c6eb431a1963a2e5857c100eeacd952.zip | |
NvFlinger: Don't swap buffers if a frame is missing and always trigger event in sync gpu.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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() { | |||
| 203 | 203 | ||
| 204 | if (!buffer) { | 204 | if (!buffer) { |
| 205 | // There was no queued buffer to draw, render previous frame | 205 | // There was no queued buffer to draw, render previous frame |
| 206 | system.GPU().SwapBuffers({}); | 206 | auto& gpu = system.GPU(); |
| 207 | // Always trigger on sync GPU. | ||
| 208 | trigger_event = !gpu.IsAsync(); | ||
| 207 | continue; | 209 | continue; |
| 208 | } | 210 | } |
| 209 | 211 | ||