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: mapping texture on ram

Hybrid View

  1. #1
    Intern Contributor
    Join Date
    Oct 2007
    Location
    persia,tabriz
    Posts
    71

    mapping texture on ram

    hi

    can i map texture on the system RAM?( when i change to content of ram, texture content changes and when i use rtt , content of ram changes)

    i want to work with webcam and do image processing with textures and shaders, at now i use glTexSubImage but it isnt fast.

  2. #2
    Advanced Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    556

    Re: mapping texture on ram

    glTexSubImage's efficiency will be affected by the texture format you use. For example on some platforms the difference between GL_RGBA and GL_BGRA as the texture format can give as much as 10%-15% performance difference because the GPU may or may not have to "swizzle" the data.

    For faster texture "uploads" to the GPU you should consider using PBOs and double buffering them.
    Take a look at this..
    http://www.songho.ca/opengl/gl_pbo.html

Posting Permissions

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