Sign in to follow this  

strange problem with vertex buffer

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

This topic is 4861 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this