1
0
Fork 1
forked from suyu/suyu

NvFlinger: Don't swap buffers if a frame is missing and always trigger event in sync gpu.

This commit is contained in:
Fernando Sahmkow 2019-09-26 08:46:22 -04:00 committed by FernandoS27
parent 5b5e60ffec
commit 976d9ef43c

View file

@ -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;
} }