2009/12/7 Timothée Lecomte <email@example.com>
Le 7 déc. 09 à 00:00, Greg Ewing a écrit :
That's an advice I've seen very often on opengl pages on the web. Is
> Timothée Lecomte wrote:
>> As far as alternatives to pure glTexSubImage2D, I have considered
>> and tried to use PBO, but it does not decrease the time needed by
>> the two glTexSubImage2D calls.
> This is puzzling, because transferring 1000 pixels of data
> shouldn't take very long, even if you're not doing it the
> most efficient way.
> The only thing I can think of is to try using different
> pixel formats for the texture data. Fastest CPU->GPU transfers
> occur when you use a pixel format that matches what the
> GPU uses, so that no conversions are needed.
there a way to know at runtime what is the native format ?