Results 1 to 6 of 6

Thread: Max render target textures?

  1. #1
    Member Contributor
    Join Date
    Sep 2009
    Posts
    96

    Max render target textures?

    The performance of my application drops when trying to use 80 render targets (framebuffer objects) instead of 70...

    Is there a maximum number of render-to-texture targets in OpenGL? How can I retrieve it?

    Thanks in advance.

  2. #2
    Senior Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    892

    Re: Max render target textures?

    working set > vram = paging

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,574

    Re: Max render target textures?

    To clarify, you're using too much video memory, which is forcing the implementation to page out some of the video memory to main memory. This takes up performance.

  4. #4
    Member Contributor
    Join Date
    Sep 2009
    Posts
    96

    Re: Max render target textures?

    That is very strange... I have a video card with 256 MB. My billboards are 512x512x4 (RGBA) so that the 70 billboards "only" eat 70 MB. There is nothing more in the screen except a 3D model which has 100.000 triangles which takes less than 10 MB.

    However if there can not be any other possibility, I'll check my memory consumptions.

    Thanks for your answer.

    PD: There is no way to ask to OpenGL for the vide memory available, is it?

  5. #5
    Super Moderator Frequent Contributor imported_Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    937

    Re: Max render target textures?

    I guest your software become fillrate bound when you reach 80 billboard. Try 80 billboard with a lower resolution (256*256) and observe the cost ratio between 70 to 80 billboard in 256 and in 512. If this value is really lower with 256 textures, you are definitly fillrate bound.

  6. #6
    Member Contributor
    Join Date
    Jan 2007
    Posts
    89

    Re: Max render target textures?

    There might also be some internal hardware limits you are hitting.

    For example, the hierachical zBuffer of ATI cards before X2000 uses special on-chip memory:
    (http://ati.amd.com/developer/SDK/AMD...h_in-depth.pdf)
    If too much depth buffers are allocated, rendering will be slower.

    Or it is just a driver issue...

    These kind of thing cannot be queried as far as i know.

    In the end, you will have to find a workaround... - Try lowering the resolution.
    - Try to cumulate 4 rendertarget together to 1024x1024
    - Try it on different hardware

Similar Threads

  1. Using textures as render target
    By Kopelrativ in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 01-13-2012, 01:12 AM
  2. GlClear with FBO Render target
    By Federico in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-19-2010, 07:55 AM
  3. different GL states for each render target ?
    By shajder in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 02-26-2010, 08:16 AM
  4. Render Target
    By akuda in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-25-2006, 02:45 AM
  5. GL_RGB10 render target
    By k_szczech in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-28-2006, 10:22 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