Jump to content
  • Advertisement
Sign in to follow this  
Fargo

Vertex Buffer Limit

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

Is there a limit on the number of vertex buffers I can create and use ?. I have created a Class that generates a simple quad. The Class has its own vertex buffer and function to render the quad. I use several of these in my program and call each one from the main loop for rendering..So far I see no problems.. It works fine, no memory leaks or exceptions..But before I get too far along I wanted to be sure if there was a limit ..And if I should use managed memory pool or default memory pool when creating a lot of vertex buffers.. Im using directx 9.

thanx in advance.

Share this post


Link to post
Share on other sites
Advertisement
As long as your under 1000 or something in total, don't worry about it. If you get more than that, try to group multiple quads into the same buffer, and preferably draw multiple quads with a single Draw-call.
(Which means it's better to group them into one buffer, but if you don't have very many it doesn't matter that much.)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!