WineD3D: better video memory defaults

Roderick Colenbrander thunderbird2k at gmx.net
Mon Sep 17 15:16:20 CDT 2007


Hi,

Direct3D offers games the possibility to query the amount of memory available for textures (this is a combination of video memory and AGP-like system memory). OpenGL doesn't expose such functionality as it takes care of all this behind your back.

Anyway we need to provide programs the capability to query the amount of free texture memory without a way of knowing it. (You can query the video memory for Nvidia/ATI if you use a vendor extension but this is highly unportable; further it only includes video memory )

Right now we are tracking the memory usage but are using a default of 64MB. This amount is too little for various modern games and perhaps even too much for some older cards. This patch uses better defaults based on the detected GPU. One game it fixes is C&C3.

Note that in all cases the VideoMemSize registry option overrides our default value.
 
Regards,
Roderick Colenbrander
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-better-defaults-for-estimating-the-amount-of-tex.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070917/da557fbc/attachment-0001.bin 


More information about the wine-patches mailing list