View Full Version : mapping texture on ram

08-16-2009, 12:25 PM

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.

08-16-2009, 07:54 PM
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..