Blender Git Commit Log

Git Commits -> Revision 6fa4001

Revision 6fa4001 by Clément Foucault (master)
March 14, 2018, 21:44 (GMT)
GWN: Batch: Perf: Comment out glBindVertexArray(0)

Even if they are for safety they are not free to use !

On my system (Mesa + AMD Vega GPU) calling:
glBindVertexArray(1);
glDrawArrays(GL_TRIANGLES, 0, 3);
glBindVertexArray(0);
in a loop, shows the same overhead as a full vao switching (which is more
or less 10 times slower than just calling glDrawArrays)

Moreover, now that we use OpenGL 3.3 binding a VAO is REQUIRED to issue a
drawcall so it is garanted to be overwritten before the next drawcall.
Problem can only happen if someone draws directly with opengl commands.

Commit Details:

Full Hash: 6fa400182423d1a9200fe93ed0b7a45e37552c3e
Parent Commit: 75de653
Lines Changed: +6, -2

1 Modified Path:

/intern/gawain/src/gwn_batch.c (+6, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021