Results 1 to 3 of 3

Thread: texture memory

  1. #1
    Member Contributor
    Join Date
    Feb 2000
    Stafford, UK

    texture memory

    When I create textures (Using the methods used in most tutorials with bitmaps), is the texture copied to video memory, or main memory?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000

    Re: texture memory


    It depends on what system/drivers you got. If you have a hardware accelerated board, it will most certainly be uploaded into the video memory.

    If you use too many large textures, the ones that not fit into the video memory, will remain in the main memory.


  3. #3
    Senior Member Frequent Contributor
    Join Date
    Feb 2000

    Re: texture memory

    Actually a bit more complicated than that...

    For a software renderer, textures are always in main mem.

    For a non-AGP hardware renderer (assuming it isn't falling back to software for some reason), textures are always copied to video mem. Where they won't all fit, this often leads to thrashing every frame, because most drivers current discard the least recently used texture. John Carmack has recently posted a plan file arguing that discarding MRU would probably be better, odd though it may sound.

    For an AGP hardware renderer, textures can be stored in either main or video mem; it's up to the driver and will depend on available vidmem.

    Lastly, most if not all Windows drivers will keep a copy of the texture in main mem, even if they've uploaded it to video mem. This is because Windows can trash the contents of videomem without warning in some cases (e.g. BSOD).

    Hope this helps

Similar Threads

  1. Very very odd memory texture memory heap usage on OSX
    By mlfarrell in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-02-2015, 03:54 PM
  2. Texture Memory
    By avaknin in forum OpenGL: Windows
    Replies: 2
    Last Post: 12-07-2004, 02:42 AM
  3. Texture Memory and PC memory issue
    By Luca Vacchetti in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-03-2004, 01:16 PM
  4. when is texture data loaded into texture memory
    By guoxusheng in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-12-2004, 04:49 AM
  5. read back texture memory to system memory
    By PeterP in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-06-2002, 01:30 AM

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