GNOME Bugzilla – Bug 688475
st-theme-node-drawing: Group multiple cogl_rectangle calls
Last modified: 2012-11-16 18:27:25 UTC
See patch, just noticed it while working on something else.
Created attachment 229158 [details] [review] st-theme-node-drawing: Group multiple cogl_rectangle calls Calling cogl_rectangles is more efficent then using multiple cogl_rectangle calls.
Review of attachment 229158 [details] [review]: Sure.
Review of attachment 229158 [details] [review]: Are your sure about this assertion? Cogl seems to be batching VBO uploads through CoglJournal, unless you change the pipeline parameters, so this should not make any difference in practice.
(In reply to comment #3) > Review of attachment 229158 [details] [review]: > > Are your sure about this assertion? Cogl seems to be batching VBO uploads > through CoglJournal, unless you change the pipeline parameters, so this should > not make any difference in practice. I didn't verify that in any case it does not hurt, saves a few function calls and allows cogl to optimize them better if there is a need to do so.
Attachment 229158 [details] pushed as 4fa914a - st-theme-node-drawing: Group multiple cogl_rectangle calls
Attachment 229158 [details] pushed as d854081 - st-theme-node-drawing: Group multiple cogl_rectangle calls