Hello. I've noticed that some games(like Witcher) need more ram to use. Problem is that I've got 4gb (3,5) but after playing a while wine is crashing when memory riches 1,6 or 1,7 GB. Obviously when you change some settings to low it runs longer, but some games just look great with full settings on(like Witcher:) ) What I want to ask is that : Is there a way to force wine with some registry entry or with a patch to force wine to use 3GB or more of my RAM. Thanks for any answer on subject.
magmp skrev:> Hello. I've noticed that some games(like Witcher) need more ram to use. Problem is that I've got 4gb (3,5) but after playing a while wine is crashing when memory riches 1,6 or 1,7 GB. Obviously when you change some settings to low it runs longer, but some games just look great with full settings on(like Witcher:) ) What I want to ask is that : Is there a way to force wine with some registry entry or with a patch to force wine to use 3GB or more of my RAM. Thanks for any answer on subject.No, this is a limitation of the default 32-bit address space layout used by Windows. For compatibility reasons, Windows only reserves 2GB for user space. (Many (older) games *will* crash with a larger space.) However, some Windows executables may be designed for a 3GB space. These have a special flag set in the .exe file's PE header. Perhaps there's some utility out there that would allow you to edit the .exe file to set that flag, but if the app isn't designed to be run like that, it might cause more problems than it solves. If the app is leaking memory, perhaps it'd be better to figure out why, and if it's a Wine problem, file a bug...
Ok. I can understand that but there is one but. You see game itself might have issue but in vista Microsoft fixed problem with update ( can't confirm, just red about it), so it must be a way to cashe more RAM. The other thing is if I open sysinfo i can't see full amount of memory cashed, so I believe that you can force wine to cashe full 3gb on initialization.
mikolajz
2008-Jul-06 12:18 UTC
[Wine] Re: Is there a way to force wine to use more memory?
The executable (Witcher.exe) does have the flag (IMAGE_FILE_LARGE_ADDRESS_AWARE), and Wine seems to support it, so the game should be able to use more RAM. If it crashes then it looks like a Wine bug. You should run the application from the console, copy the crash dump and file a bug on http://bugs.winehq.org .
I don't know Visio but what I can suggest is that you could use 168.12 driver. I have 8800 GTS 512 and it's working 33% better on this driver. I don't have any problem with performance on Witcher and other games but it might be configuration ( e8400 3GHz 8800GTS512, 4GB RAM, Raptor 150GB ). I think I found a patch for better memory allocation but haven't tried yet. I will do it after weekend and share here with results.