Results 1 to 3 of 3

Thread: Many bound textures performance question

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2011
    Posts
    9

    Many bound textures performance question

    Hi

    On my card I have 32 texture units. Would it influence performance if I had bound different textures to all texture units but then only used just some of them (like 2 - 3) in shader or should I unbind textures that are not used during single batch rendering. In other words - if a rendered object only requires 2 textures then only those two textures should be bound to render system during rendering?

    Thanks

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    992

    Re: Many bound textures performance question

    I don't think it adds any performance penalty by just having them bound.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

  3. #3
    V-man
    Guest

    Re: Many bound textures performance question

    If you don't sample a texture from within your shader, then the texture samplers don't do anything.

Similar Threads

  1. Bug with glDeleteTextures on bound textures
    By poppyto in forum OpenGL ES
    Replies: 0
    Last Post: 09-06-2013, 02:33 AM
  2. blit fbo that has multiple textures bound
    By lobbel in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-13-2010, 02:49 AM
  3. bound textures?
    By supagu in forum OpenGL: GLSL
    Replies: 5
    Last Post: 04-27-2004, 06:26 PM
  4. Textures bound to data/video streams
    By Freelancer in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-17-2004, 01:10 PM
  5. One displaylist, multiple textures bound to polys
    By P88_Razor in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-23-2003, 04:11 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