Archived

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

CoolTomK

Vertex Buffer Performance Hit

Recommended Posts

CoolTomK    122
I am making a simple program that loads a .3ds file and displays it to the screen. Ive got all the loading figured out, now Ive got to render the scene. I want to load each mesh object onto its own vertex and index buffer and then render each mesh object. The problem is that a .3ds file could conatin hundreds of little mesh objects. My question is would hundreds of little vertex & index buffers being rendered at once make a significant performance hit, or should I load all the meshes onto one vertex buffer and render that?? thanks

Share this post


Link to post
Share on other sites
gmcbay    130
For devices with hardware T&L you are generally much better off having fewer bigger vertex buffers than lots of small ones. So if you''re not doing any sub-mesh polygon clipping, just load the meshes up into big VBs and render those.

Share this post


Link to post
Share on other sites