Skip to main content
gamedev.net
🔒 Locked

VBOs

Started by Monder Mar 5, 2004 at 2:29 PM 2 replies 350+ views
Original Post
Monder
Monder
I''ve just been reading about VBOs and I was wondering, how do you go about allocating storage for everything you may want to put in a VBO? Do you allocate one big buffer and manage it all yourself or create a new buffer for every geometry chunk you may want to render? I''m guessing allocating one big buffer is faster, but I don''t know how fast VBO buffers can be allocated/deallocated and bound.
Monder
Monder
Hmm guess I should''ve finished reading NVidia''s guide to using VBOs before posting my question It now looks like a seperate VBO buffer for every geometry chunk is the way to go.
_the_phantom_
_the_phantom_
Yep, thats pretty much it, generaly what games do is allocate a number of buffers and then fill them as needed with data depending on whats visable in the scene and how many vertices are needed etc etc
Monder
Monder
Assuming I did just make a seperate VBO for every geometry chunk would OpenGL upload the VBOs used the most to the vram? Or will it just allocate space for them depending on what''s available and never move them around?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.