gaming performance increase tutorial

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

gaming performance increase tutorial

Postby luposolo on Mon Oct 06, 2008 5:09 pm

i do not take credit for this script, the credit for this script goes to "cogadh" at the ubuntu forums
here's how the script works it launches a seperate x server to gain some performance boost, all you have to do is open the terminal, make sure your logged in as root
and type this

Code: Select all
#!/bin/sh
#uncomment if launching from console session
#sudo /etc/init.d/gdm stop
#KDE use this instead
#sudo /etc/init.d/kdm stop

# Launches a new X session on display 3. If you don't have an Nvidia card
# take out the "& nvidia-settings --load-config-only" part
X :3 -ac & nvidia-settings --load-config-only

# Goto game dir (modify as needed)
cd "~/.wine/drive_c/Program Files/Game/Directory/"

# Forces the system to have a break for 2 seconds, X doesn't launch instantly
sleep 2

# Launches game (modify as needed)
DISPLAY=:3 WINEDEBUG=-all wine "C:/Program Files/Game/Directory/game.exe"
luposolo
Level 1
Level 1
 
Posts: 9
Joined: Thu Oct 02, 2008 2:46 am

Linux Mint is funded by ads and donations.
 

Re: gaming performance increase tutorial

Postby msuggs on Mon Oct 06, 2008 5:13 pm

Anything that helps to boost game performance under Wine is a bonus :) It's a shame we don't have more games converted to run natively in Linux :(
msuggs
Level 5
Level 5
 
Posts: 882
Joined: Thu Jul 10, 2008 8:25 am
Location: non-local

Re: gaming performance increase tutorial

Postby merlwiz79 on Tue Oct 07, 2008 1:00 am

You shouldn't be running any programs with root privileges, unless it's an admin program.
User avatar
merlwiz79
Level 11
Level 11
 
Posts: 3637
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: gaming performance increase tutorial

Postby msuggs on Tue Oct 07, 2008 2:34 pm

merlwiz79 wrote:You shouldn't be running any programs with root privileges, unless it's an admin program.

hmm, I didn't notice that one (I'll have to stop glancing over posts). I also wouldn't be running any Windows based code as root. A sure fire recipe for disaster.
.
Apart from that I don't quite understand the script. If I've switched to root priviliges to run it then using sudo to stop gdm wouldn't be necessary. Also you wouldn't just type the script into a terminal. It would have to be saved somewhere, made executable and then run from within the root terminal.

Am I missing something here?
msuggs
Level 5
Level 5
 
Posts: 882
Joined: Thu Jul 10, 2008 8:25 am
Location: non-local

Re: gaming performance increase tutorial

Postby cturtle on Mon Oct 27, 2008 3:20 pm

Interesting tip about the WINEDEBUG=-all setting. I'll have to see if that does much for me.

Don't really appreciate him putting ideas about running-as-root in users' heads. It does improve performance a little on most apps just because it's skipping the authentication work, but some penalties are worth paying. Someone's gonna screw up his system and go back to gaming on Windows.

I don't understand how changing your shell to the game's directory in advance will help. The script's running it using the absolute pathname anyway. Also, not sure why sleeping for two seconds after a cd command makes a difference.

How will running X on a different display help?
cturtle
Level 1
Level 1
 
Posts: 8
Joined: Fri Mar 30, 2007 12:10 am


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 7 guests