WineD3D: Do not set the mipmap level count for old textures

Stefan Dösinger stefandoesinger at gmx.at
Sat Apr 1 13:45:40 CST 2006


Am Samstag, 1. April 2006 19:34 schrieb Stefan Dösinger:
> The attached patch stops WineD3D from re-setting the GL_TEXTURE_MAX_LEVEL
> texture parameter every time a texture is used. It is not necessary, as the
> max level is a property of the texture and not the active unit(according to
> Lionel Ulmer). Setting the maximum level causes the 3d driver to dirtify
> the texture in the video memory, which has to be reloaded then every time
> it is used.
>
> This patch should greatly increase the performance of most games. (I
> noticed an fps improvement of a factor of 5)
A small addition here: This case seems to be handled by the nvidia driver 
already, so the performance improvement applies only to ati cards. I tested 
this with my mobility radeon 9000 with the open source driver from Xorg7.0 
and fglrx 8.23.7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060401/1797afe3/attachment.pgp


More information about the wine-devel mailing list