Jump to content
  • Advertisement
Sign in to follow this  
darkseed

VBO in dynamic objects: discard or not

This topic is 3256 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 have vertex data in the format (pos, normal, texCoord, skeletonJointIndices, skeletonJointWeights) packed in a VBO. A dynamic object (eg humanoid) performs software skeletal animation every frame and its vertices pos/normal are updated. My question is how to optimize the VBO update. I'm aware that discarding the buffer can have a performance gain because of synchronization issues. However, I can't discard the buffer using glBufferDataARB(GL_ARRAY_BUFFER_ARB, size, NULL, glUsage) without rewriting the texCoord and skeleton joints indices/weights. Is it faster to discard the buffer and rewrite it every frame or to not discard it and update only the vertex attributes I wish? Thanks in advance. [Edited by - darkseed on October 25, 2009 1:39:22 AM]

Share this post


Link to post
Share on other sites
Advertisement
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!