Jump to content
  • Advertisement
Sign in to follow this  
wojjy

strange problem with vertex buffer

This topic is 5138 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 got some code that initializes my vertex buffer and some code that draws from it. Fist of all everything is really slow but the strange thing is that it works faster when I initialize my buffer every frame than if I initialize it just once. Any idea what could that be?

Share this post


Link to post
Share on other sites
Advertisement
are you filling it with data every frame? (with a Lock call?)

if so then it may be that you are using a non-discard flag which could make it run real slow. Try D3DLOCK_DISCARD when u fill the buffer with new data.

Share this post


Link to post
Share on other sites
I just got it right.
I have no idea what that was. Started new blank project and it's ok. Probably it wasn't even directx related but still very strange.

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!