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

Thread: faster movie playback

  1. #1
    Junior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Vancouver, BC, Canada
    Posts
    118

    faster movie playback

    How can I improve my movie playback performance?

    I decode each frame to memory then I set my texture data to the new data with glTexSubImage2D and then display the texture. It is a simple 512x512x24bit image.

    Unfortunatly glTexSubImage2D takes about 3.5ms on my P4/GF4. Surely there is some way I can do this more effeciently? Are there any extensions to do this quicker?

  2. #2
    Intern Newbie
    Join Date
    May 2002
    Location
    Wroclaw, Poland
    Posts
    39

    Re: faster movie playback

    You should take a look at GL_NV_pixel_data_range extension. One of its purposes is to make glDrawPixels and glTexSubImage to work faster. I haven't use it though, so I can't tell if it really gives any boost...

    Kuba

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Oct 2000
    Location
    Belgium
    Posts
    857

    Re: faster movie playback

    3.5 whole milliseconds? That would mean that you can do it 285 times per second. Given that your video is probably 30 fps at most, why do you need to improve the speed?

    How did you obtain that 3.5 msec number anyway? OpenGL is a pipelined architecture, so the chances on the operation actually being completed when the function call returns are slim.

    -- Tom

  4. #4
    Intern Newbie
    Join Date
    Aug 2002
    Location
    uk
    Posts
    47

    Re: faster movie playback

    ARB_texture_compression ?

Posting Permissions

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