Jump to content
  • Advertisement

Archived

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

Hippokrates

What is faster

This topic is 5802 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 am at the moment trying to implement a tile Engine. Would it be faster to stuff all my tiles into a static vb and render everything that it contains or should I use a dynamic vb and sort of cull the tiles? And I will have to lock it every now and then to update the texture coords for tile animation and so on.

Share this post


Link to post
Share on other sites
Advertisement
Well chances are that you will have multiple textures, so on. One VB will be faster (as you dont have to swithch VBs a lot) with textures batched so you only have to call your Draw*Primitive() a few times. On that note you should use an index buffer to store indices of your polygons so that you can make use of the vertex cache of your gfx card. Culling tiles will be a good idea but you need to do it effectively. Look into a way of culling tiles on a large scale.

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites

  • 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!