• Advertisement

Archived

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

video card ram

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

i have a question about the ram in a video card. seeing that most modern cards have between 64 and 128 megs of it, is there a way that you can use some of it with a function like malloc() for allocating it, using openGL(and possibly direcx)? and if so, is it efficient for storing video data, such as textures? [edited by - barazor on June 27, 2002 12:18:36 AM]

Share this post


Link to post
Share on other sites
Advertisement
You can''t access the video memory directly. Instead, you generally let the OpenGL or DirectX sort this out for you.

As far as rendering goes, the ideal place for your geometry and textures is video memory. However, reading data back from video memory is slow, so you should treat it as write only. Anything that needs to be read should be kept in system memory.

Share this post


Link to post
Share on other sites
Have a look into wglAllocateMemoryNV() extension (if you are using OGL ). It lets you allocate optimum memory for vertex arrays so that they render faster. This is because it lets you store vertex data on the graphics card. This should be used in conjunction with GL_NV_vertex_array_range extension. Look em up and see if they are what u want .

Hope this helps.

- Weasalmongler

Share this post


Link to post
Share on other sites

  • Advertisement