tigakub
2002.05.14, 03:14 PM
There's a demo at
http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/OpenGLFastTexDemo.htm
that shows how to optimize for Mac's ARBG pixel format. However, in that demo, it makes the following call:
glPixelStorei(GL_UNPACKCLIENT_STORAGE_APPLE, 1);
which is supposed to make OpenGL use the application copy of the texture. The documentation that came with the demo claims that this results in a 70% speed improvement.
How can this be? How can pulling data through the AGP be faster than using resident textures? (Or can I assume that the demo was written with the software renderer in mind?)
Also, does anyone know where I can get my hands on some CGL documentation/reference material? All I can seem to find is AGL stuff.
thanx
-tigakub
http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/OpenGLFastTexDemo.htm
that shows how to optimize for Mac's ARBG pixel format. However, in that demo, it makes the following call:
glPixelStorei(GL_UNPACKCLIENT_STORAGE_APPLE, 1);
which is supposed to make OpenGL use the application copy of the texture. The documentation that came with the demo claims that this results in a 70% speed improvement.
How can this be? How can pulling data through the AGP be faster than using resident textures? (Or can I assume that the demo was written with the software renderer in mind?)
Also, does anyone know where I can get my hands on some CGL documentation/reference material? All I can seem to find is AGL stuff.
thanx
-tigakub