speed of glReadPixels()

New Message Reply Date view Thread view Subject view Author view

Hansong Zhang (zhangh++at++cs.unc.edu)
Fri, 8 Nov 1996 14:22:16 -0500 (EST)


Hi,

I did statistics for glReadPixels() on IR. The result shows that
reading a 512x512 area takes about 44 milliseconds, which seems
to long. Could anybody confirm or correct this number (or give me your
results for other resolutions)? I used format GL_RED and type
GL_UNSIGNED_BYTE.

According to OpenGL man pages, pixel transfers seem always to involve
converting to and from floating point representation. Is there anyway
to bypass the type conversion (and can this speed up the transfer?)

Thanks!

Hansong

-------------------------------------------------------------
Hansong Zhang \ zhangh++at++cs.unc.edu
Walkthrough Group \ http://www.cs.unc.edu/~zhangh
Department of Computer Science \ (919)962-1835 (O)
UNC-Chapel Hill \ (919)914-3973 (H)

"I create abstract systems from pure information, Albert. I'm
a *programmer*... Quantum nonlocality is a bug." -- God
-------------------------------------------------------------

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:54 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.