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

Thread: PBO slower than glTexSubImage2D() ???

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2009
    Location
    France, Bordeaux.
    Posts
    24

    PBO slower than glTexSubImage2D() ???

    I would like to stream video frames from an avi to an opengl texture as fast as possible. So I wrote four little programs that load repeatedly a texture with different method :
    - with teximage2D
    - with texSubImage2D
    - with one PBO
    - with two PBO loaded alternately

    For a 640*480 texture here is the corresponding fps values :
    - texImage2D : fps = 51 (loading is slower because the texture is not power of 2)
    - texSubImage2D : fps = 72
    - one PBO : fps = 68
    - two PBO : fps = 67


    Where can be the problem ? My driver implement a fake pixel buffer extension ? (my graphic card is a Intel N10 from an asus eeepc )

    I join the source code (benchmark.zip).

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2007
    Posts
    965

    Re: PBO slower than glTexSubImage2D() ???

    Most likely a fake extension that's actually software emulated.

    For glTexSubImage2D on Intel you really need to be using GL_BGRA/GL_UNSIGNED_INT_8_8_8_8_REV, but I guess that if you're getting 72 FPS it's already fast enough.

Posting Permissions

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