Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › How To: Advanced Wine configuration for gaming.
New Posts  All Forums:Forum Nav:

How To: Advanced Wine configuration for gaming.

post #1 of 15
Thread Starter 
This guide will tell you how to configure Wine registry keys that you cannot configure with winecfg by using regedit. The reason for doing this is that Wine comes with some pretty bad graphics settings, namely that your graphics card has 64mb of RAM.

1. Install Wine however you want, with git, with a distro specific package or (my recommendation) from the source. There is another FAQ here that can help you if you are having problems.

2. Run the Wine configuration tool, by opening up a terminal and typing:
Code:
winecfg
The only thing you should need to do here, I think, is to click on the audio tab to make sure you sound card gets configured and then click Apply and then OK.

3. Run the Registry Editor, type in a terminal:
Code:
regedit
Now expand HKEY_CURRENT_USER, then Software, and then Wine.

4. Now if you have a key named Direct3D good, if not (most likely) create it. Do this by using your right mouse button and the New->Key option, then name it Direct3D.

5. Okay, move to the Direct3D key you just created and start making string values do this with you right mouse button and the New->String Value option. First off, this is very important, create one name VideoMemorySize, then double click on it and enter the amount of RAM your graphics card has (just the number no MB!).

6. Any other string values you might want set can be found here. But I will go over a couple others that I recommend creating (or editing): DirectDrawRenderer, set this to opengl unless you have problems (this is significantly faster than gdi but not as well supported); UseGLSL, set to enabled unless you have problems (this is now the default for Wine version .0.9.49 and later).

7. If you are having problems switching resolutions when using Wine (your desktop doesn't return to it's normal size or is larger than your screen etc.) create the key X11 Driver and the string values UseXRandR and UseXVidMode, set one to Y and the other to N. Then try switching resolution. If the problem is fixed good, if not flip the Y N values and try it again.

8. I have found that setting HKEY_CURRENT_USER-->Software-->Wine-->Alsa Driver-->AutoScanCards and AutoScanDevices both to Y helps game correctly detect my sound card.

Remember every time you update Wine to run
Code:
wineprefixcreate
to update you registry. Also different programs run best with different values so make sure to check the App Database for the best settings for any programs you use and if you want more information on using Wine to visit Wine HQ.

Increasing Scheduler Priority
Not a registry tweak, but a use full trick that can increase performance in both Wine and native games.
Code:
nice -10 wine game.exe
If performance doesn't improve enough try increasing the number (max is -20) but -10 should be fine for most programs.

DX10 DLLs
Again not a registry tweak but here check it out.

Installing into Different Folders
When you install applications with Wine you install them into the .wine folder by default. One thing I like to do after I install a piece of software is to change the directory it is installed in. For example, lets say I just installed Prey, first thing I would do rename the folder /home/priapus/.wine/ to /home/priapus/.prey/. second thing I would do is right click on my start menu, choose menu editor, find Prey, and change it from
Code:
env WINEPREFIX="/home/priapus/.wine" wine "C:Program Files/Prey/prey.exe"
to
Code:
env WINEPREFIX="/home/priapus/.prey" wine "C:Program Files/Prey/prey.exe"
and the work path from
Code:
/home/priapus/.wine/dosdevices/c:/Program Files/Prey
to
Code:
/home/priapus/.prey/dosdevices/c:/Program Files/Prey
Just like if you install a lot of programs in Windows can slow Windows down, installing a lot of programs under Wine can slow Wine down too. This also makes uninstallation a breeze. Also this simplifies having different settings for different programs.

No-CD patches
One more thing I would like to say about using Wine for gaming is; get used to using the No-CD cracks! Wine only has very rudimentary support for Secure-ROM copy protection and that is it. From Wine HQ
Quote:
Copy protection uses several "dirty" methods to detect if discs are "real" or not. Some of these methods work in Wine but most do not, such as the extremely invasive StarForce system. Wine would need to be altered to allow for almost rootkit-like functionality of programs to get some of these copy protection schemes to work, so support is likely to be a long time off if ever.
So get used to using them. Since they are of questionable legality you will have to Google around for them yourself.
HAL9000
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 4800+ X2 "Toledo" MSI K8N Neo4 Platinum MSI GeForce 7900GS 512MB Overclock Edition 2GB OCZ Platinum DDR400 
Hard DriveOSMonitorPower
2xSeagate Barracuda 250GB 7200RPM 3.0Gb/s SabayonLinux x86 3.4 Optiquest Viewsonic Q20wb Antec Earthwatts 500W 
CaseMouse
Thermaltake Tsunami Dream Razer Diamondback 
  hide details  
Reply
HAL9000
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 4800+ X2 "Toledo" MSI K8N Neo4 Platinum MSI GeForce 7900GS 512MB Overclock Edition 2GB OCZ Platinum DDR400 
Hard DriveOSMonitorPower
2xSeagate Barracuda 250GB 7200RPM 3.0Gb/s SabayonLinux x86 3.4 Optiquest Viewsonic Q20wb Antec Earthwatts 500W 
CaseMouse
Thermaltake Tsunami Dream Razer Diamondback 
  hide details  
Reply
post #2 of 15
nice guide. deserves a cookie
    
CPUMotherboardGraphicsRAM
i5 3570K P8Z77-M XFX 7870 1150/1400 2 x 4g Corsair Vengeance LP 1600MHz 
Hard DriveOptical DriveOSMonitor
Callisto Deluxe 40GB & 1TB Sammy Spinpoint F1 &... Nec ND3540A W7 RTM ACER V243HLbmd 
KeyboardPowerCaseMouse
Microsoft Curve 2000 PC P&C Silencer 750w Antec 300 MX518 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i5 3570K P8Z77-M XFX 7870 1150/1400 2 x 4g Corsair Vengeance LP 1600MHz 
Hard DriveOptical DriveOSMonitor
Callisto Deluxe 40GB & 1TB Sammy Spinpoint F1 &... Nec ND3540A W7 RTM ACER V243HLbmd 
KeyboardPowerCaseMouse
Microsoft Curve 2000 PC P&C Silencer 750w Antec 300 MX518 
  hide details  
Reply
post #3 of 15
I vote for a sticky.... Good Job Dude!!
Phobos
(19 items)
 
  
CPUMotherboardGraphicsGraphics
Athlon 64 X2 4400 Toledo  Foxconn NF4SK8AA SLi MSI NX8600GT-T2D256E OC MSI NX8600GT-T2D256E OC 
RAMHard DriveHard DriveHard Drive
2x1 GB Mushkin CL2 WD 250 GB SATA 300 WD 500 GB SATA 300 Seagate 500 GB SATA 300 
Optical DriveCoolingOSOS
LiteOn iHAS124W HL04 Dual Layer SATA DVD/CD RW Rosewill RCX Z-1 Xubuntu 12.04-1 Precise 32 Bit Windows 7 Home premium 32 Bit 
MonitorKeyboardPowerCase
LG L1932TQ 4ms Flatron 19" LCD Saitek Eclipse Thermaltake TR2 600 Rosewill R604TBLK-N Black 
MouseMouse PadAudio
Rosewill 5 button Walmart Creative Labs X-Fi Xreme Gamer 
  hide details  
Reply
Phobos
(19 items)
 
  
CPUMotherboardGraphicsGraphics
Athlon 64 X2 4400 Toledo  Foxconn NF4SK8AA SLi MSI NX8600GT-T2D256E OC MSI NX8600GT-T2D256E OC 
RAMHard DriveHard DriveHard Drive
2x1 GB Mushkin CL2 WD 250 GB SATA 300 WD 500 GB SATA 300 Seagate 500 GB SATA 300 
Optical DriveCoolingOSOS
LiteOn iHAS124W HL04 Dual Layer SATA DVD/CD RW Rosewill RCX Z-1 Xubuntu 12.04-1 Precise 32 Bit Windows 7 Home premium 32 Bit 
MonitorKeyboardPowerCase
LG L1932TQ 4ms Flatron 19" LCD Saitek Eclipse Thermaltake TR2 600 Rosewill R604TBLK-N Black 
MouseMouse PadAudio
Rosewill 5 button Walmart Creative Labs X-Fi Xreme Gamer 
  hide details  
Reply
post #4 of 15
Quote:
Originally Posted by reset3x View Post
I vote for a sticky.... Good Job Dude!!
I agree, thats a great guide. Nice job man
I.XXII.I
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 5960X 8 core Asus X99 Deluxe EVGA GeForce GTX Titan X Corsair Dominator Platinum 16GB 
Hard DriveHard DriveOptical DriveOS
Samsung 830 SSD 128GB (OS/Apps) Samsung 830 SSD 512GB (Games) LG BH10LS30 Windows 8.1 Professional x64 
MonitorKeyboardPowerCase
BenQ XL2411T(Main) + Samsung T240 (Secondary) Corsair K70 RGB Mechanical Corsair AX1200 Cooler Master HAF X 
MouseAudioAudioOther
Razer Imperator Asus Xonar D2X 7.1 Sound Card Astro A40 2013 Ed. audio system Western Digital Elements 3TB (Storage) 
  hide details  
Reply
I.XXII.I
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 5960X 8 core Asus X99 Deluxe EVGA GeForce GTX Titan X Corsair Dominator Platinum 16GB 
Hard DriveHard DriveOptical DriveOS
Samsung 830 SSD 128GB (OS/Apps) Samsung 830 SSD 512GB (Games) LG BH10LS30 Windows 8.1 Professional x64 
MonitorKeyboardPowerCase
BenQ XL2411T(Main) + Samsung T240 (Secondary) Corsair K70 RGB Mechanical Corsair AX1200 Cooler Master HAF X 
MouseAudioAudioOther
Razer Imperator Asus Xonar D2X 7.1 Sound Card Astro A40 2013 Ed. audio system Western Digital Elements 3TB (Storage) 
  hide details  
Reply
post #5 of 15
STiCK!
SR2 PWNS J00
(22 items)
 
SL4V3
(16 items)
 
 
CPUMotherboardGraphicsRAM
2x intel Xeon X5650 @ 4Ghz Evga SR-2 SLi Evga GTX480s 18GB G.SKill Pi 1600 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
60GB Vertex 3 2TB Western Digital Black 2TB External HDD (USB 2) 22x Sata Bluray/DVD Multi Drive 
CoolingCoolingCoolingCooling
Hardware Labs GTX 360 Radiator EK Supreme HF Copper Danger Den GTX480 Waterblock All Copper Natemandoo SR-2 Solid Copper Waterblock 
CoolingCoolingOSMonitor
Iwaki RD-30 D5 with DCThermo Top Windows 7 Ultimate 3x 24" LG LCDs (16:9) 
KeyboardPowerCaseMouse
Ducky Shine MX-Cherry Black Mechanical Keyboard... 1500W Silver stone Strider Mountain Mods Extended Ascension Horizon Razer Mamba 2012 (wired) 
Mouse PadAudio
Razer XactMat Asus Xonar SXT 
CPUMotherboardGraphicsRAM
intel Q6600 ASUS P5K-E Wifi AMD HD Radeon 6990 4GBs G.skill HZs 
Hard DriveOptical DriveCoolingOS
OCZ vertex 2 LG 22x combo drive Cooler Master hyper 212+ Windows 7 Ultimate x64 
MonitorMonitorKeyboardPower
LG FLATRON L1933TR LG FLATRON L1933TR Logitech G15 rev. 1 Silverstone Decathlon 750W modular PSU 
CaseMouseMouse PadAudio
Thermaltake Armor with 250mm side fan Logitech 2000dpi USB mouse Steel series QcK+ Auzentech X-Fi prelude 
  hide details  
Reply
SR2 PWNS J00
(22 items)
 
SL4V3
(16 items)
 
 
CPUMotherboardGraphicsRAM
2x intel Xeon X5650 @ 4Ghz Evga SR-2 SLi Evga GTX480s 18GB G.SKill Pi 1600 DDR3 
Hard DriveHard DriveHard DriveOptical Drive
60GB Vertex 3 2TB Western Digital Black 2TB External HDD (USB 2) 22x Sata Bluray/DVD Multi Drive 
CoolingCoolingCoolingCooling
Hardware Labs GTX 360 Radiator EK Supreme HF Copper Danger Den GTX480 Waterblock All Copper Natemandoo SR-2 Solid Copper Waterblock 
CoolingCoolingOSMonitor
Iwaki RD-30 D5 with DCThermo Top Windows 7 Ultimate 3x 24" LG LCDs (16:9) 
KeyboardPowerCaseMouse
Ducky Shine MX-Cherry Black Mechanical Keyboard... 1500W Silver stone Strider Mountain Mods Extended Ascension Horizon Razer Mamba 2012 (wired) 
Mouse PadAudio
Razer XactMat Asus Xonar SXT 
CPUMotherboardGraphicsRAM
intel Q6600 ASUS P5K-E Wifi AMD HD Radeon 6990 4GBs G.skill HZs 
Hard DriveOptical DriveCoolingOS
OCZ vertex 2 LG 22x combo drive Cooler Master hyper 212+ Windows 7 Ultimate x64 
MonitorMonitorKeyboardPower
LG FLATRON L1933TR LG FLATRON L1933TR Logitech G15 rev. 1 Silverstone Decathlon 750W modular PSU 
CaseMouseMouse PadAudio
Thermaltake Armor with 250mm side fan Logitech 2000dpi USB mouse Steel series QcK+ Auzentech X-Fi prelude 
  hide details  
Reply
post #6 of 15
Thread Starter 
Thanks for the compliments everyone.
HAL9000
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 4800+ X2 "Toledo" MSI K8N Neo4 Platinum MSI GeForce 7900GS 512MB Overclock Edition 2GB OCZ Platinum DDR400 
Hard DriveOSMonitorPower
2xSeagate Barracuda 250GB 7200RPM 3.0Gb/s SabayonLinux x86 3.4 Optiquest Viewsonic Q20wb Antec Earthwatts 500W 
CaseMouse
Thermaltake Tsunami Dream Razer Diamondback 
  hide details  
Reply
HAL9000
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 4800+ X2 "Toledo" MSI K8N Neo4 Platinum MSI GeForce 7900GS 512MB Overclock Edition 2GB OCZ Platinum DDR400 
Hard DriveOSMonitorPower
2xSeagate Barracuda 250GB 7200RPM 3.0Gb/s SabayonLinux x86 3.4 Optiquest Viewsonic Q20wb Antec Earthwatts 500W 
CaseMouse
Thermaltake Tsunami Dream Razer Diamondback 
  hide details  
Reply
post #7 of 15
Just read it and it is on my A list of Linux --to --do list....LOL
PRONE
(19 items)
 
Cap't Crunch
(14 items)
 
 
CPUMotherboardGraphicsRAM
i7 3930k @ 5Ghz Msi X79A-GD45 Gigabyte Radeon 7950 Patriot Sector 7 
Hard DriveOptical DriveCoolingCooling
2xCorsair Force Series 3 Raid-0 LG DVDR/W Custom Water Loop Swiftech Apogee Drive II waterblock/pump 
CoolingCoolingOSMonitor
Swiftech MCRES-Micro Rev 2 Larkooler 240mm Rad server 2008 RC2 HP 2207HD 
KeyboardPowerCaseMouse
HP Classic wireless PC Power and Cooling Silencer Mk II 950W High P... NZXT Phantom...again lol HP Classic wireless 
Mouse PadAudioOther
MicroCenter Onboard TBA 
CPUMotherboardGraphicsRAM
2500k Maximus V Extreme Radeon 6950HD Avexir 
Hard DriveOptical DriveCoolingOS
Corsair Force 3 LG DVD RW Corsair H100i WIndowd 8.1 
MonitorKeyboardPowerCase
HP 2159M Logitech CX750M Cosair Carbide 540AIR 
MouseMouse Pad
logitech logitech 
  hide details  
Reply
PRONE
(19 items)
 
Cap't Crunch
(14 items)
 
 
CPUMotherboardGraphicsRAM
i7 3930k @ 5Ghz Msi X79A-GD45 Gigabyte Radeon 7950 Patriot Sector 7 
Hard DriveOptical DriveCoolingCooling
2xCorsair Force Series 3 Raid-0 LG DVDR/W Custom Water Loop Swiftech Apogee Drive II waterblock/pump 
CoolingCoolingOSMonitor
Swiftech MCRES-Micro Rev 2 Larkooler 240mm Rad server 2008 RC2 HP 2207HD 
KeyboardPowerCaseMouse
HP Classic wireless PC Power and Cooling Silencer Mk II 950W High P... NZXT Phantom...again lol HP Classic wireless 
Mouse PadAudioOther
MicroCenter Onboard TBA 
CPUMotherboardGraphicsRAM
2500k Maximus V Extreme Radeon 6950HD Avexir 
Hard DriveOptical DriveCoolingOS
Corsair Force 3 LG DVD RW Corsair H100i WIndowd 8.1 
MonitorKeyboardPowerCase
HP 2159M Logitech CX750M Cosair Carbide 540AIR 
MouseMouse Pad
logitech logitech 
  hide details  
Reply
post #8 of 15
Quote:
Originally Posted by reset3x View Post
I vote for a sticky.... Good Job Dude!!
Not for sticky. But definitely put in into the directory.
    
CPUMotherboardGraphicsRAM
AMD FX-6300 3.8Ghz 6-Core Asrock 990fx Extreme3 eVGA GeForce GTX650 1GB 1x8GB Corsair Vengeance 
Hard DriveCoolingOS
1TB WD Green STOCK lol Windows 8 64-bit 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD FX-6300 3.8Ghz 6-Core Asrock 990fx Extreme3 eVGA GeForce GTX650 1GB 1x8GB Corsair Vengeance 
Hard DriveCoolingOS
1TB WD Green STOCK lol Windows 8 64-bit 
  hide details  
Reply
post #9 of 15
Thread Starter 
It is in the directory you silly Wheezing Baby! And yes a sticky would not be appropriate.
HAL9000
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 4800+ X2 "Toledo" MSI K8N Neo4 Platinum MSI GeForce 7900GS 512MB Overclock Edition 2GB OCZ Platinum DDR400 
Hard DriveOSMonitorPower
2xSeagate Barracuda 250GB 7200RPM 3.0Gb/s SabayonLinux x86 3.4 Optiquest Viewsonic Q20wb Antec Earthwatts 500W 
CaseMouse
Thermaltake Tsunami Dream Razer Diamondback 
  hide details  
Reply
HAL9000
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 4800+ X2 "Toledo" MSI K8N Neo4 Platinum MSI GeForce 7900GS 512MB Overclock Edition 2GB OCZ Platinum DDR400 
Hard DriveOSMonitorPower
2xSeagate Barracuda 250GB 7200RPM 3.0Gb/s SabayonLinux x86 3.4 Optiquest Viewsonic Q20wb Antec Earthwatts 500W 
CaseMouse
Thermaltake Tsunami Dream Razer Diamondback 
  hide details  
Reply
post #10 of 15
I vote for sticky as well and don't see why that would not be appropriate....
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
x2 3600+ Brisbane@2.7 Biostar TForce 550 7950GT 2GB Crucial Ballistix 
Hard DriveOSMonitorKeyboard
200GB Maxtor Diamondmax Windows XP/Fedora 8 22" widescreen LG Saitek Eclipse 
PowerCaseMouse
Antec Neopower 480 modded Cheap/Nice Logitech G7 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
x2 3600+ Brisbane@2.7 Biostar TForce 550 7950GT 2GB Crucial Ballistix 
Hard DriveOSMonitorKeyboard
200GB Maxtor Diamondmax Windows XP/Fedora 8 22" widescreen LG Saitek Eclipse 
PowerCaseMouse
Antec Neopower 480 modded Cheap/Nice Logitech G7 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › How To: Advanced Wine configuration for gaming.