Skip to content

optimize constbuf bindings

Erik Faye-Lund requested to merge kusma/virglrenderer:constbuf-optimize into master

From profiling the time spent in virglrenderer during supertuxkart, it turns out that re-binding all UBOs for each draw-call takes up a sizable amount of the time; about 5% of the complete CPU usage, when using vtest (where frame). In fact, about 7.5% of the CPU time that's spent in vrend_draw_vbo seems to be spent in this function. This series makes this about 0.5% of the time instead.

Merge request reports

Loading