Login  Register

Re: Copying pixel data to texture faster than glTexSubImage2D?

Posted by Jesse on Oct 23, 2013; 1:44pm
URL: https://forum.jogamp.org/Copying-pixel-data-to-texture-faster-than-glTexSubImage2D-tp4030321p4030341.html

Well after looking through these classes the conclusion I've come to is that glTexSubImage2D is the fastest way to do this.  I guess the problem is that copying 4mb of pixels from RAM to VRAM is slow.

Looks like pbuffers or FBO's are useful if you are rendering to an offscreen texture, but offer no speed gain (actually, slower) if the source pixel data is in RAM (like the case I have).

Using a PBO to do the transfer is useful if you are asynchronously copying from RAM->VRAM, but that's not the case for me as everything is waiting on this transfer to be finished.

If this sounds wrong please let me know because I've given up!

Jesse