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

Thread: Texture Management

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    17

    Texture Management

    Hi, All!

    I can set texture priority by using glPrioritizeTextures(). Textures with hi priority are moved in "working set" and textures with low priority are moved out from it, if it's correct. That's good. But how can I determine size of "working set" for managing my textures, or may be I don't need to think about this stuff?

    Yours, Mad Max.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: Texture Management

    You don't really need to think about the size, because the video card driver will move the texture in and out of memory when you use glTex and glDeletetex.

    But one thing you have to think about though is that if you working set is huge, maybe all the textures won't fit into your video card memory, so then the driver will put them in main memory or in Virtual memory(depending on the size of your ram). This will slow things up if their is a lot of swapping.

    But you shouldn't care about it too much. Just test your working set and don't worry about the size, and if in the end you that your program is not fast enough, well one the the bottleneck could be texture size, so you'll have to load less texture in memory and then you'll be able to put a MAX_SIZE for your program.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    17

    Re: Texture Management

    Thank's, Gorg.

Posting Permissions

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