GNOME Bugzilla – Bug 652507
Create the 1x1 texture for the root background unsliced
Last modified: 2011-06-29 16:27:48 UTC
When there was no root background pixmap, we were using a 1x1 repeating texture as a simple way of drawing a solid color without adding a second code path. However, when that 1x1 texture was combined into a larger "atlas texture", hardware repeat couldn't be used, so a small inefficiency from this approach became an enormous inefficiency as clutter drew every pixel of the background as a separate rectangle.
Created attachment 189853 [details] [review] Create the 1x1 texture for the root background unsliced
Review of attachment 189853 [details] [review]: Mmmh, is it particularly important to allow slicing for the dummy texture in meta_create_texture_material()? Other than that looks good to commit after adding the new 'flags' parameter in the gtk-doc comment.
1x1 textures are the place where we most would want slicing - there's quite a bit of constant overhead for each texture - get rounded up to a page, have to change memory map tables on the processor, syscall to create and destroy, etc. It wouldn't *really* hurt to create a few extra textures, but best to avoid it.
Attachment 189853 [details] pushed as fe12294 - Create the 1x1 texture for the root background unsliced