View Full Version : Uniform Buffer Object Performance
09-15-2010, 02:49 PM
Has anyone seen a performance boost from using UBOs?
09-15-2010, 04:37 PM
* Instancing sucks ? Post277237 (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=277237#Post2772 37)
* Instancing sucks ? Post277177 (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=277177&Searchpa ge=1&Main=53469&Words=ubos&Search=true#Post277177)
Just searched on Ilian and UBOs since I know he's one poster that's commented on std uniform vs. UBO perf. Sounds like UBOs may be stored in device global memory and pulled by the shader, whereas plain ol' uniforms may be stored in device local memory and pushed to the shader (to use OpenCL memory space names). The latter you might expect to be faster to access.
Worth reverifying though...
09-16-2010, 08:01 AM
AFAIK, UBOs are in fact stored in device global memory but once they're bound the content is moved to device local memory so the shader does not have to pull it from global memory. That is the reason behind the severe size limitation of UBOs (64K).
Check my article about it: http://rastergrid.com/blog/2010/01/uniform-buffers-vs-texture-buffers/
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.