[osg-submissions] Fix for very slow mipmap generation
Michael Platings
mplatings at pixelpower.com
Mon May 26 06:15:04 PDT 2008
Hi Robert,
On nvidia cards mipmap generation for non-power-of-two textures with
GL_GENERATE_MIPMAP_SGIS is very slow (over half a second for a 720*576
texture). However, glGenerateMipmapEXT() performs well (16ms for the
same texture), so I have modified the attached files to use
Texture::generateMipmap() if glGenerateMipmapEXT is supported, instead
of enabling & disabling GL_GENERATE_MIPMAP_SGIS.
The files have been modified from the 2.4 release
Thanks
-Michael Platings
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Texture2D.cpp
Type: application/octet-stream
Size: 14635 bytes
Desc: Texture2D.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080526/257f9a7f/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Texture.cpp
Type: application/octet-stream
Size: 66700 bytes
Desc: Texture.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080526/257f9a7f/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextureCubeMap.cpp
Type: application/octet-stream
Size: 14919 bytes
Desc: TextureCubeMap.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080526/257f9a7f/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Texture
Type: application/octet-stream
Size: 42548 bytes
Desc: Texture
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080526/257f9a7f/attachment-0007.obj>
More information about the osg-submissions
mailing list