Re: [PyOpenGL-Users] Rolling spectrogram with pyopengl
Brought to you by:
mcfletch
From: Timothée L. <tim...@lp...> - 2009-12-07 08:13:39
|
Le 7 déc. 09 à 00:00, Greg Ewing a écrit : > 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. > That's an advice I've seen very often on opengl pages on the web. Is there a way to know at runtime what is the native format ? Thanks Greg. Timothée |