Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Videomemory

  1. #1
    Intern Contributor
    Join Date
    Jul 2001
    Location
    Czech Republic
    Posts
    79

    Videomemory

    Is it possible from OpenGL to find out how much "high performance memory" (I mean memory for textures) is available and how much is being used just now?

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    486

    Re: Videomemory

    No. It's impossible.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    133

    Re: Videomemory

    you can use texture proxys to tell if a certain texture will fit in texture memory at a certain time. you might be able to use this to figure out roughly how much memory is available for storing textures, but it probably wont be very accurate, and it will also be slow, so you probably should only do it durring initialization or debugging, not durring drawing...

  4. #4
    Intern Contributor
    Join Date
    Jul 2001
    Location
    Czech Republic
    Posts
    79

    Re: Videomemory

    Thanks for your reply.

    If it is not possible directly from OpenGL, is there ANY way how to find out? (I mean I have heard the DirectX can do that, but is there a way that avoids using DirectX)?

    thanks in advance
    Platinum

  5. #5
    Junior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    133

    Re: Videomemory

    well, you could try add one byte to the proxy texture and loading it untill it wont fit, then thats how much it will hold

    of course, that doesnt take into account having vertex data in the memory, but it should tell you how much memory there is.

    anything else is probably os specific, i dont know of any os specific stuff that will tell you this, but if you say what os you are using, someone else might...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •