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 4 of 4

Thread: texture memory in use?

  1. #1
    Intern Newbie
    Join Date
    May 2002
    Location
    na
    Posts
    41

    texture memory in use?

    Is there a way to query the amount of available texture memory from within an OpenGL app? I seem to recall a method to do this sort of thing using DirectX.

    Suggestions?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2003
    Posts
    146

    Re: texture memory in use?

    You can use glAreTexturesResident() to see if textures are loaded in texture memory,
    but you can't use OpenGL to query how much memory is available. But it's not like I really
    need to know or can control it in anyway.

  3. #3
    Intern Newbie
    Join Date
    May 2002
    Location
    na
    Posts
    41

    Re: texture memory in use?

    Originally posted by gator:
    You can use glAreTexturesResident() to see if textures are loaded in texture memory,
    but you can't use OpenGL to query how much memory is available.
    Yeah, I didn't think there was an OpenGL way to do this. But I seem to recall a method to query the amount of free texture memory using DirectX. Just can't seem to remember the specifics. I was hoping someone else had some experience using DirectX in an OpenGL app for this purpose.

  4. #4
    Junior Member Regular Contributor
    Join Date
    Jan 2003
    Posts
    146

    Re: texture memory in use?

    Unless you want to use that information for statistics only, I don't believe it will help
    you much. I think the graphics card can do anything it wants with it, whenever it wants,
    as you have no control over it, so the information returned may not even be accurate.

Posting Permissions

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