Results 1 to 4 of 4

Thread: quick question on texture storage...

  1. #1
    Member Contributor
    Join Date
    Jul 2006
    Location
    UK
    Posts
    86

    quick question on texture storage...

    I apologise for a 'newbie' question but if, for example, i have 20mb of textures and send them to a 16mb graphics card, does opengl store 16mb in video RAM & 4mb in system RAM, or does it store all 20mb in system ram and makes a copy in video memory? In other words does it store textures once or twice?

    BTW - I know I'm simplifying here and ignoring frame buffers etc. I just need to work out the most efficient use of memory.

    Many thanks
    Mark

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: quick question on texture storage...

    You can expect that generally no splitting of a single texture image is taking place.
    (Not discussing architectures here which might provide virtual texturing or somesuch.)
    Your 20 MB texture won't fit into your 16 MB video memory, so it will either not work at all or because modern graphics chips are able to access AGP (ok, that's not so modern anymore ) or PCI-Express memory, the texture will be put there and texture fetches go over the bus.
    Textures are backed up by a system memory copy in OpenGL (same as what D3D calls "managed pool") because it can happen at any time that the OS takes the framebuffer away for resolution switches or sleep modes.

  3. #3
    Senior Member OpenGL Pro sqrt[-1]'s Avatar
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    1,000

    Re: quick question on texture storage...

    I read your question differently, you are talking about multiple textures that add up to 20MB correct?

    If so, then you are correct in assuming that most OpenGL implementations store all 20mb in system ram and swaps in and out of video memory as needed.

    (OpenGL does not define this behavior, this is just what most implementations do)

  4. #4
    Member Contributor
    Join Date
    Jul 2006
    Location
    UK
    Posts
    86

    Re: quick question on texture storage...

    Many thanks for the reply(s).

    Sorry, I should have said the 20mb consisted of many smaller textures... but you answered the question anyway - textures in video memory are just copies from system RAM.

Similar Threads

  1. quick question on texture mapping
    By nick2price in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-17-2008, 03:19 AM
  2. another question on texture storage...
    By Mark Shaxted in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-31-2007, 06:06 AM
  3. Quick Question:
    By Krak in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-05-2003, 09:24 PM
  4. Dynamic Object Storage Question
    By GoatNat in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-19-2001, 05:39 AM
  5. Quick question
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 11-01-2000, 03:13 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