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

Thread: So slow

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2005
    Location
    UK
    Posts
    13

    So slow

    Hi,
    I'm having a spot of bother with texturing. For some reason using
    Code :
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
    kills the performance of my app, it eats up 100% of the CPU (as far as I'm aware it's a hardware process so shouldn't be touching the CPU that much?) and I'm lucky to get a handfull of frames in a minute. Yet
    Code :
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
    works fine and hardly touches the CPU. Now I know using GL_LINEAR should make it a little slower, but not that much. Particularly when I can get much better performance doing my own texture filtering in a shader, something I want to avoid in this case as I'm already using a hell of a lot of instructions.....I'm running it on an NVIDIA GF6800 with Forceware 81.98 on M$ Windows XP.

    Any ideas why this is so slow?

    Thanks
    "The mice were furious"

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: So slow

    Originally posted by Megalomaniac:
    Hi,
    Any ideas why this is so slow?
    You are probably using texture format for which the hw does not have filtering support so it will fallback into sw emulation.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2005
    Location
    UK
    Posts
    13

    Re: So slow

    Originally posted by Komat:
    You are probably using texture format for which the hw does not have filtering support so it will fallback into sw emulation.
    Thanks. Where could I find out what the 6800 supports?
    "The mice were furious"

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: So slow

    Originally posted by Megalomaniac:
    Originally posted by Komat:
    You are probably using texture format for which the hw does not have filtering support so it will fallback into sw emulation.
    Thanks. Where could I find out what the 6800 supports?
    Look for GPU programming guide on nVidia pages. Probably the most likely format you can use that is not supported with filtering are 32bit floating point textures.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Melbourne,Victoria,Australia
    Posts
    767

    Re: So slow

    This thread talks about how GL_LINEAR is not supported for 32bit float textures.

  6. #6
    Junior Member Newbie
    Join Date
    Jul 2005
    Location
    UK
    Posts
    13

    Re: So slow

    Thought it might be something like that, I can't really afford to do it in the shader at the moment. Might be able to get away with 16bit though, hmmmmm time for some maths.

    Thanks
    "The mice were furious"

Posting Permissions

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