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: fast upload texture

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    22

    fast upload texture

    I need to update 60 fps a texture with a movie frame (directshow filter--- multithread application). I use gltexsubimage2D(...) to upload the new frame... but it takes between 5ms and 15 ms to upload the texture.. What can I do to improve the upload time... It seems the nv_pixel_data_range is a good way but I don't find any tutorial ... is there any tutorial or another way to do that?

    Best regards
    Yannick

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Posts
    748

    Re: fast upload texture

    Huh ? 5 to 15 ms updates is 200 to 66 fps. That's more than your target, so what's the problem exactly ? And what size/format is your texture ?

    Y.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    22

    Re: fast upload texture

    it'video like 720x576 60fps. it's GL_BGR_EXT format. 5 to 15 ms is too long, the video decompressing take also time ... and I need to display at least two movies a the same time.

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Posts
    748

    Re: fast upload texture

    I don't know, the resolution is pretty high, that's roughly 100 Mb/second of uploading speed. Not too bad if you ask me. You can try experimenting with other formats (16 bits textures ?), try reducing the resolution.. use a lower framerate (60 fps for a video ? 24-30 fps is the standard).. you can try to look at the nv_pixel_data_range specification (i don't know any tutorial), but frankly i don't believe you'll get a lot more than 100 Mb/sec.

    Y.

Posting Permissions

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