After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765592 - frametimings: reuse previous frame timing in common case
frametimings: reuse previous frame timing in common case
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-04-26 10:11 UTC by Christian Hergert
Modified: 2016-04-26 13:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
frametimings: reuse previous frame timing in common case (3.12 KB, patch)
2016-04-26 10:11 UTC, Christian Hergert
committed Details | Review

Description Christian Hergert 2016-04-26 10:11:45 UTC
Common code path, might as well remove the free/alloc in the common case.
Comment 1 Christian Hergert 2016-04-26 10:11:48 UTC
Created attachment 326746 [details] [review]
frametimings: reuse previous frame timing in common case

Typically, there won't be any references on old frame timings except for
the most recent timing. So instead of discarding these and re-entering
gslice twice, just steal the old frame timing and reuse it.
Comment 2 Matthias Clasen 2016-04-26 13:06:23 UTC
Attachment 326746 [details] pushed as f27dd21 - frametimings: reuse previous frame timing in common case