mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
frame clock: Used drawn_time (as well as presentation time) in profiler marks.
This commit is contained in:
parent
e2a4be0243
commit
0ad73da68a
@ -777,11 +777,15 @@ void
|
||||
_gdk_frame_clock_add_timings_to_profiler (GdkFrameClock *clock,
|
||||
GdkFrameTimings *timings)
|
||||
{
|
||||
if (timings->drawn_time != 0)
|
||||
gdk_profiler_add_mark (timings->drawn_time, 0, "drawn window", NULL);
|
||||
|
||||
if (timings->presentation_time != 0)
|
||||
gdk_profiler_add_mark (timings->presentation_time, 0, "presented window", NULL);
|
||||
|
||||
if (timings->presentation_time != 0 || timings->drawn_time != 0)
|
||||
{
|
||||
gdk_profiler_add_mark (timings->presentation_time, 0, "presented window", NULL);
|
||||
gdk_profiler_set_counter (fps_counter,
|
||||
timings->presentation_time,
|
||||
frame_clock_get_fps (clock));
|
||||
gint64 time = timings->presentation_time != 0 ? timings->presentation_time : timings->drawn_time;
|
||||
gdk_profiler_set_counter (fps_counter, time, frame_clock_get_fps (clock));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user