Jump to content
  • Advertisement

Archived

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

fenrir

max vertexbuffer?

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

How big can a vertex buffer be? I am making a simple landscape engine, and it works fine with a map up to +- 150*150 vertices, but when I tried one that was a little bigger than 200*200 it just crashes everytime Maybe I''m just doing something wrong because I have seen figures that say that my geforce should be able to do more than 100k vertices. Anyone got a clue? I''m using an indexbuffer to

Share this post


Link to post
Share on other sites
Advertisement
In DX8, if you GetDeviceCaps into a D3DCAPS8 structure you will be given MaxPrimitiveCount and MaxVertexIndex. Personally I haven''t got a clue what your system is going to return, but if you are using 200 * 200, with two triangles per ''square'' of terrain that''s 80K primitives in one VB, which is probably a bit too many to be honest.

Share this post


Link to post
Share on other sites
DX7 has a hard limit of 64K primitives at a time. DX8 you can get the value based on the caps that were mentioned. Index Count is a WORD, so there you go with that limit as well.

Share this post


Link to post
Share on other sites
Hmm.. Well i have a question related to this.. Even though Directx does culling(dont know too much about dx culling yet though) wouldnt you want a state in your geometry renderer that would cut the number of vertices you are using to send into the vertex buffer?

Because if you send in an entire set of vertices.. wont that take a great deal of time to render in the first place?

Regards,
Russ

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!