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 656125 - layout: Don't create and destroy ripple animations
layout: Don't create and destroy ripple animations
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-07 20:49 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2011-08-08 18:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
layout: Don't create and destroy ripple animations (4.64 KB, patch)
2011-08-07 20:49 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-08-07 20:49:27 UTC
This gives us a pretty big speedup when entering the overview.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-08-07 20:49:29 UTC
Created attachment 193389 [details] [review]
layout: Don't create and destroy ripple animations

Instead, create three ripples and keep tweening them. This gives a dramatic
speedup when entering the overview, but means that we can't have the same animation
running twice. In this case, we "reset" the currently running ripple animation, but
it is hard to notice unless looking for it.
Comment 2 Colin Walters 2011-08-08 11:18:34 UTC
Review of attachment 193389 [details] [review]:

"dramatic"?  It's probably worth mentioning how you measured performance.  Just observation?

Good to commit after comments.

::: js/ui/layout.js
@@ +281,3 @@
+
+        // Cache the three ripples instead of dynamically creating and destroying them
+        // so we don't accidentally cache them.

cache...so we don't accidentally cache?

Seems like you could just delete the second line.
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-08-08 18:09:53 UTC
(In reply to comment #2)
> Review of attachment 193389 [details] [review]:
> 
> "dramatic"?  It's probably worth mentioning how you measured performance.  Just
> observation?

I measured performance with my eyes: before, entering and exiting the overview was quite choppy on my nVidia desktop. Now it's extremely smooth.
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-08-08 18:11:34 UTC
Attachment 193389 [details] pushed as 08e669a - layout: Don't create and destroy ripple animations