azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
615 stars 52 forks source link

OpenGL 2 findUniformLocation caching failure #113

Closed azul3d-bot closed 8 years ago

azul3d-bot commented 8 years ago

Issue by slimsag Wednesday Dec 03, 2014 at 08:14 GMT Originally opened as https://github.com/azul3d/gfx/issues/58


After profiling some code I found a bottleneck in the gfx/gl2 renderer. Primarily it appears that findUniformLocation was not correctly caching the uniform locations as it was intended to originally.

After the fix, a somewhat significant performance gain is had (~15% gain in the azul3d_stencil example).

slimsag commented 8 years ago

Fixed/merged as part of https://github.com/azul3d/engine/issues/1