nvdisp: End system frame after requesting to swap buffers

Fixes frametime reporting
This commit is contained in:
Morph 2022-08-02 03:38:19 -04:00 committed by Fernando Sahmkow
parent 11e1cbbdbd
commit 903705043d
1 changed files with 1 additions and 1 deletions

View File

@ -50,8 +50,8 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, android::PixelFormat form
const Tegra::FramebufferConfig framebuffer{addr, offset, width, height,
stride, format, transform, crop_rect};
system.GetPerfStats().EndSystemFrame();
system.GPU().RequestSwapBuffers(&framebuffer, fences, num_fences);
system.GetPerfStats().EndSystemFrame();
system.SpeedLimiter().DoSpeedLimiting(system.CoreTiming().GetGlobalTimeUs());
system.GetPerfStats().BeginSystemFrame();
}