Back to photostream

12 thousand lights

Testing performance after some updates to my deferred renderer. Ugly as sin and no way practical to have that many lights :) but hits a stable 60fps with 12,000 dynamic moving lights at 1920x1280 resolution. Big performance gains were from minimizing OpenGL draw calls, shader switching, and binding/unbinding of VBOs + textures - by keeping these bound when possible and making sure that all objects sharing the same VBO, texture, and shader are rendered together. Pretty obvious stuff now, but it's easy to be careless ;)

 

Definitely becoming a profiler junkie - CodeXL is great on Linux (and Windows) and OpenGL Profiler from Apple does the trick on OS X.

898 views
1 fave
1 comment
Uploaded on March 29, 2013
Taken on March 29, 2013