GNOME Bugzilla – Bug 635206
Investigate using cogl_rectangles_with_texture_coordinates()
Last modified: 2014-12-29 06:15:49 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.
Any slight speedup we might get is unfortunately lost by the unfortunate usage of Cogl to begin with. Not going to touch this one.