Re: measuring video memory



New Guy wrote:

This is a FAQ, look for the detailed awnser there. google "OpenGL
FAQ site:opengl.org"

1) What function call (if any) can I use to see how much
*total* VRAM a graphics card has?

There is none.

2) And what call to see how much *available* VRAM ? (ie, VRAM
not used by frame buffers, pbuffers, and textures).

There is none.

OpenGL will swap out textures from VRAM to system memory if
you're running low on VRAM. Of course this comes with the same
drawback, that swapping always brings: A huge performance hit.

There are ways to determine, if a texture will fit into
the "resident" area of the VRAM, before you upload (using proxy
textures) and you can test, if a texture has been swapped. But
there's no way to tell, how much space is left in VRAM for
textures. Actually such a value makes no sense with OpenGL
anyway, since you can't lock the video hardware exclusively, so
by starting other programs, which use the 3D hardware will
change the situation completely.

Wolfgang Draxinger
--
E-Mail address works, Jabber: hexarith@xxxxxxxxxx, ICQ: 134682867

.



Relevant Pages

  • Re: Some experimentation results (was: Re: Newbie memory management question)
    ... The used grahics card is a GeForce 7800 GT with 256MiB of VRAM. ... how much VRAM can be aquired by textures the test ... other resources the system obviously has to claim. ...
    (comp.graphics.api.opengl)
  • Re: Texturing fails silently, objects are all white
    ... even with the managed pool where it pages it in/out of VRAM ... surely it still must be in VRAM when the Draw*() call is ... These textures are big photos, and on old graphics cards with low ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Managed textures - always a copy in system memory?
    ... I'll only be able to animate 10-11 frames until I run out of VRAM on a 128MB card. ... For example, if the texture was in VRAM and needed to be discarded to make room for another graphics object, the driver could allocate sysmem, copy the texture from VRAM, then free the VRAM. ... I read a paper on Nvidia's website that said a LockRect+UnlockRectis effectively a NOOP on managed textures. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Managed textures - always a copy in system memory?
    ... >> managed textures and do LockRectto access it. ... I need to have the data accessible to my app to give mouse cursor feedback ... textures to the card before implementing this otherwise there will be VRAM ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Wie auf OpenGL =?iso-8859-1?b?/GJlcnBy/GZlbj8=?=
    ... // switch on hardware acceleration if using OpenGL with pbuffers ... Auf meinem Linuxrechner musste ich letzteres auskommentieren und Vram ... oder OpenGL zur Verfügung steht. ...
    (de.comp.lang.java)