Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

pleja

Size of Vertex arrays

This topic is 5535 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

I''ve read some article on web considering size of vertex arrays, it was for directx though. Anyway, question is is it better to merge all arrays into one huge and then draw it or still keep array split? What size is prefered?

Share this post


Link to post
Share on other sites
Advertisement
Wasn't it about GDC2003 and CPU bounding problems? Oh well, it does not matter.

The point is the more vertices you render at one time, the less time they'll take (proportionally).
Now, merging everything in a single array **may** give you a nice speedup but... let's face it. Doing it correctly is going to be hell on earth.
Take for example NV_VAR and the new ARB_buffer_object.
VAR tells basically that you have to allocate a large array and 'break it down' to sub-arrays. Changing from one array to the other is **slow**.
ARB_buffer_object by the other hand, was designed to change between different arrays with ease.

Now, what we have to learn from this?
Excessive optimization does not pay.
Faster development pays.

EDIT: sum up - Keep arrays separate. The best performance is implementation dependant and application-dependant.

[edited by - Krohm on May 26, 2003 3:10:07 PM]

Share this post


Link to post
Share on other sites

  • 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!