Skip to main content
GameDev.net gamedev.net
🔒 Locked

vbuffers dynamic/static

Started by Rolo Puentes Aug 12, 2002 at 12:16 PM 0 replies 450+ views
Original Post
Rolo Puentes
Rolo Puentes
what is the difference between them? can i lock static buffers? if the buffer is static, how can i fill it?
infinitycool
infinitycool
The big dufference about dynamic and static vertex buffers is how you use them and where they are located in memory. Besides that you can use them both the exact same way.

Dynamic VBs are used for geometry that changes each frame (particle engines etc). They need to be written to each frame so the driver will put them in an optimal place for it.

Static VBs are generally used for ''static data'' or data that only needs to be loaded once at the beginning and won''t change much during the level (base terrain data or monster models). This will be put in an optimal place is memory for rendering because the driver knows that you don''t need to write to it. Write operations on static VBs are slower that dynamic ones.

Search for optimize or dynamic vbs in the forums and you''ll get a lot of information/links on the subject.

infinitycool


"Black Holes are where God divided by zero"
"Black Holes are where God divided by zero"

Topic Locked

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

Sign in to reply to this topic.