Jump to content
  • Advertisement
Sign in to follow this  
waZim

OpenGL Does Interleaved Vertix Attributes Arrays really Helps Performance

This topic is 3396 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Reading the following two articles, http://www.opengl.org/wiki/VBO#Inner_Workings http://www.sci.utah.edu/~bavoil/opengl/bavoil_trimeshes_2005.pdf I can't convence myself on a conclusion of using Interleaved Vertix arrays to improve Cache performance.. and the reason is that if you want to use glDrawArrays(),which is considered slow as compared to glDrawElements, then you are duplicating alot of vertices (a waste of GPU memory) if you want to use glDrawElements() than you don't have spatial locallity in your Vertix attributes buffer.... since you are refering to them with Indices from your IBO. So my question is. Is it really worth it? creating an Interleaved Attributes arrays and a single VBO Can some OpenGL guru Guide me here?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by AverageJoeSSU
http://developer.nvidia.com/object/bindless_graphics.html


Thats koooooooool.. but its not a solution to my question. its rather an alternative.

Share this post


Link to post
Share on other sites
Quote:
Original post by waZim
if you want to use glDrawElements() than you don't have spatial locallity in your Vertix attributes buffer
Not necessarily true. Correctly cache-optimized vertex buffers will have reasonable spatial locality. In any case, it's not a huge thing to worry about. Readahead on an index buffer is trivial, so memory access latency is hidden.
Quote:
So my question is. Is it really worth it? creating an Interleaved Attributes arrays and a single VBO
Well, it's easy to implement. Try it and find out.

Share this post


Link to post
Share on other sites
from my testing IIRC I saw about 3% improvement (this was in a benchmark) for a real scene u will prolly notice no difference

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!