forked from AuroraMiddleware/gtk
macos: fix fps calculation for frame timings
We need to mark the timings as complete after adding the presentation time so that we have a valid FPS for the overlay widget and/or fishbowl demo.
This commit is contained in:
parent
1021e12121
commit
7ae8ed82c9
@ -713,7 +713,10 @@ _gdk_macos_surface_thaw (GdkMacosSurface *self,
|
||||
timings = gdk_frame_clock_get_timings (frame_clock, self->pending_frame_counter);
|
||||
|
||||
if (timings != NULL)
|
||||
timings->presentation_time = presentation_time - refresh_interval;
|
||||
{
|
||||
timings->presentation_time = presentation_time - refresh_interval;
|
||||
timings->complete = TRUE;
|
||||
}
|
||||
|
||||
self->pending_frame_counter = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user