mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
NvFlinger: Don't swap buffers if a frame is missing and always trigger event in sync gpu.
This commit is contained in:
parent
5b5e60ffec
commit
976d9ef43c
1 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,9 @@ void NVFlinger::Compose() {
|
||||||
|
|
||||||
if (!buffer) {
|
if (!buffer) {
|
||||||
// There was no queued buffer to draw, render previous frame
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue