• Advertisement

Archived

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

Vertex Arrays

This topic is 6006 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 want to use vertex arays to draw my objects on screen. Is it better to compile all the vertices fo al objects in one massive scene array and then just draw that one or do each object one by one?? Also I guess if I where to put all vertices of each object within one arary and then draw it I would have to write my own transformation routines to be able to rotate the vertcies etc.. instead of using the ogl transforms... Also how much more perfomance does locking give? All or most objects on the scene will be dynamic, so I guess I can define dynamic and static objects so to figure which arays to lock or not...

Share this post


Link to post
Share on other sites
Advertisement
>>I want to use vertex arays to draw my objects on screen.
Is it better to compile all the vertices fo al objects in one massive scene array and then just draw that one or do each object one by one??<<

normally not, actually most likely not the driver will split this group up into smaller lots, i believe even a gefroce3 handles max ±4000 verts/indices (with larger anmounts itll split them up into smaller groups costing performance)

>>Also how much more perfomance does locking give?<<
depends on what youre doing if ure doing multiple passes on a single mesh this can be good, if u arent then this can cost performance. as always test it.

Share this post


Link to post
Share on other sites

  • Advertisement