View Full Version : Memory management

08-30-2003, 04:39 AM

I was thinking about the way OpenGL is using memory - I mean how it use video memory and how memory through AGP is used. In DX, for example, you can decide wheather your data is stored on grapics board or not. AFAIK OpenGL allocate data in video memory when locking vertex arrays. Are there any other ways of forcing information to be written there? I know there are some extensions to do that (meaby you know some)...
I guess that in all other cases a AGP memory is used (if AGP port exists, of course).



08-30-2003, 05:48 AM
Take a look at GL_ARB_VERTEX_BUFFER_OBJECT : http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_buffer_object.txt

With the new function glMapBufferARB, this extension even let's you write your vertexdata directly into VRAM via a pointer given to you by GL.

[This message has been edited by PanzerSchreck (edited 08-30-2003).]

08-30-2003, 09:32 AM
Thanks! http://www.opengl.org/discussion_boards/ubb/biggrin.gif I guess that's what I need.