Results 1 to 5 of 5

Thread: Measuring Texture RAM

  1. #1
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Huntsville, AL. USA
    Posts
    302

    Measuring Texture RAM

    Anyone have a clue as to how I can determine the total texture ram available at runtime? Is there a way to do this in OpenGL? For example, I have two GeForce 2 GTS/PRO cards in different computers. One has 32Mb of texture ram, the other has 64Mb. Can I detect this at runtime using OpenGL? If not, can I do it using Win32?

    Thanks in advance ...
    Obsessive - A word used by the lazy to describe the motivated.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Lubbock, TX, USA
    Posts
    197

    Re: Measuring Texture RAM

    There is no glGet() to determine the amount of available video-RAM. The easiest way to find out how much RAM the installed card has, could be a loop generating proxy textures starting at a high value, say 512MB size to be prepared for future cards, then step down to 128, 64, 32, etc., and see when the proxy texture upload doesn't return an error. Not sure if this will work, but it might.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Measuring Texture RAM

    You could use DirectDraw to get that information. Though I myself have never examined the dwVidMemTotal or dwVidMemFree members in the DDCAPS structure, so I don't know how reliable those values would be.

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Portsmouth, Hampshire, England
    Posts
    926

    Re: Measuring Texture RAM

    This has been brought up many times before, and you shouldN'T base texture size/quality on the apparent amount of VRAM the card contains.

    There have been cards before, that dont store any textures in VRAM, and there could be a change in technology in the future that does the same, thus your program would assume low quality textures, if it only had enuff VRAM for the frame buffers.

    Make texture size/quality user definable. It's the best way.

    Nutty

  5. #5
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Huntsville, AL. USA
    Posts
    302

    Re: Measuring Texture RAM

    Thanks for all the help. I have 2 boards, one with 32Mb, the other with 64Mb. They are not labeled with their RAM content so I can't tell which is which. I thought I might make a utility application that could tell me this and that stirred my interest. I probably would have gone down the road of basing texture size/quality on my VRAM if you hadn't mentioned that it was a bad idea.
    Obsessive - A word used by the lazy to describe the motivated.

Similar Threads

  1. measuring FPS in linux....
    By Adrian P. in forum OpenGL: Linux
    Replies: 2
    Last Post: 12-02-2007, 12:26 PM
  2. FBO object and measuring performance....
    By UT666 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-23-2007, 06:00 PM
  3. Measuring Performance of GPU
    By Ben Cope in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-16-2006, 02:53 AM
  4. Measuring performance
    By Raymond Pang in forum OpenGL: GLSL
    Replies: 4
    Last Post: 11-22-2005, 11:04 PM
  5. Measuring Vertex Cache Size
    By aegis in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 10-21-2004, 12:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean