Blender Git Commit Log

Git Commits -> Revision 2006103

Revision 2006103 by Mitchell Stokes (master)
March 23, 2013, 03:11 (GMT)
OpenGL: Moving the GPU_pass_update_uniforms() call from GPU_material_bind_uniforms() to GPU_material_bind(). This way, material specific uniforms don't need to be resent when sending object specific uniforms. This saves uniform update calls in the BGE where one material is bound and multiple objects can be drawn. This doesn't offer much in the way of performance, but it cleans up our OpenGL usage a bit. One test scene went from 8k OpenGL calls to 4k with just this one change.

Commit Details:

Full Hash: 2006103a520bbc4fe48169e1125d93b6c052a362
SVN Revision: 55527
Parent Commit: 1356e3b
Lines Changed: +1, -2

1 Modified Path:

/source/blender/gpu/intern/gpu_material.c (+1, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021