Login  Register

Re: Copying pixel data to texture faster than glTexSubImage2D?

Posted by gouessej on Oct 23, 2013; 3:35pm
URL: https://forum.jogamp.org/Copying-pixel-data-to-texture-faster-than-glTexSubImage2D-tp4030321p4030345.html

It depends on what you mean by "slow" but I agree with your conclusion. As long as you are forced to transfer those pixels from the RAM, it will be a bit slow especially on big images like yours (2048 * 2048). Buffer objects can offer a speed gain but it greatly depends on your hardware.

I had to solve a similar problem several months ago and I concluded that I had to switch to vectorized data to get a huge speedup but it isn't a general solution. If your data can't be easily vectorized, it isn't worth a try.
Julien Gouesse | Personal blog | Website