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 635206 - Investigate using cogl_rectangles_with_texture_coordinates()
Investigate using cogl_rectangles_with_texture_coordinates()
Status: RESOLVED WONTFIX
Product: mutter
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2010-11-18 18:25 UTC by Owen Taylor
Modified: 2014-12-29 06:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2010-11-18 18:25:41 UTC
MetaShadow, MetaShapedTexture and MetaBackgroundActor all loop over sets of rectangles and draw multiple rectangles from the same texture with repeated cogl_rectangle_with_texture() calls.

We might get some speedup by using cogl_rectangles_with_texture_coordinates()

 - We'd have to manage a local rectangle array
 - But we save some per-rectangle material prep/validation

It's probably a loss as soon as you have to malloc the arrays, but if we can avoid that might be a small win.
Comment 1 Jasper St. Pierre (not reading bugmail) 2014-12-29 06:15:49 UTC
Any slight speedup we might get is unfortunately lost by the unfortunate usage of Cogl to begin with. Not going to touch this one.