mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 10:11:20 -08:00
NVFlinger: Do the microprofile Flip after processing a valid frame.
This commit is contained in:
parent
448856695a
commit
95b804ff05
@ -191,8 +191,6 @@ void NVFlinger::Compose() {
|
|||||||
// Search for a queued buffer and acquire it
|
// Search for a queued buffer and acquire it
|
||||||
auto buffer = buffer_queue.AcquireBuffer();
|
auto buffer = buffer_queue.AcquireBuffer();
|
||||||
|
|
||||||
MicroProfileFlip();
|
|
||||||
|
|
||||||
if (!buffer) {
|
if (!buffer) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -206,6 +204,8 @@ void NVFlinger::Compose() {
|
|||||||
gpu.WaitFence(fence.id, fence.value);
|
gpu.WaitFence(fence.id, fence.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MicroProfileFlip();
|
||||||
|
|
||||||
// Now send the buffer to the GPU for drawing.
|
// Now send the buffer to the GPU for drawing.
|
||||||
// TODO(Subv): Support more than just disp0. The display device selection is probably based
|
// TODO(Subv): Support more than just disp0. The display device selection is probably based
|
||||||
// on which display we're drawing (Default, Internal, External, etc)
|
// on which display we're drawing (Default, Internal, External, etc)
|
||||||
|
Loading…
Reference in New Issue
Block a user