Jump to content
  • Advertisement
Sign in to follow this  
MasterWorks

Need some Visual Basic 6 vertex buffer code (DX8)

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

Here's my problem: I have a large vertex buffer that I fill every frame. I had been using D3DVertexBuffer8SetData but I think I might get better performance if I could lock and unlock the vertex buffer at the beginning and end of each batch. This is for a 2D sprite engine so I have small batches and need to get this right... Does anybody have some code that fills a dynamic vertex (and index!) buffer using Direct3DVertexBuffer8 lock and unlock? I'm sure 'DXCopyMemory' is involved but haven't nailed down the right way to do it yet. -Jay

Share this post


Link to post
Share on other sites
Advertisement
I'll see if I can find my old graphics engine code - I did that for a fire effect.
However I would highly recommend upgrading to Visual Basic .NET.
It didn't take me too long to learn the language - it was mostly a matter of gaining confidence with it.

Share this post


Link to post
Share on other sites
Hi Andrew, thanks for your reply. I would love to learn some new things but this is for a commercial game engine that is 90%+ finished and my projects have some serious deadlines! I'm just trying to eke maximum performance out of this thing before thousands of people play it... anyways if you or anybody comes across the code I'd love to see it.

Cheers,

Jay

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!