PDA

View Full Version : HOWTO: Unreal Tournament too fast


steve.horsley
December 17th, 2006, 10:26 AM
I have seen a number of threads from people where Unreal Tournament (the original GOTY version) runs too fast. Well, my old game turned up behind the sofa last week, so I installed it on my new PC and had the same problem. I found a few suggested solutions, one of which almost worked sometimes.

It seems the problem is with CPUs whos clock rate changes when they get busy, confusing the game timings. One suggested fix ran a second process for a few seconds as the game started, so that the timing loop was calibrated while the CPU was busy. I found that this works sometimes, but not always. I think firstly, sometimes the game finished calibrating before the CPU changed gear. And I also found that joining a network game sometimes caused the came to recalibrate.

I have a solution that works for me, and that is to launch a second process that wastes CPU doing nothing for hte entire duration of the game. This process is launched a few seconds before the game starts to ensure that the CPU has changed speed when the game calibrates, and is run at a low task priority so it doesn't interfere with game play. For me, anyway, the game play is smooth and consistent and always at the right speed.

Firstly, if the installer created a symlink to ut somewhere, you may need to delete that again. You can find out which ut gets executed when you issue the command ut by using the command which ut. You want it to delete this symlink.

Second, I installed ut in the directory /opt/ut. To launch the game without the other stuff, just launch /opt/ut/ut. You may have chosen somewhere different and will need to adjust the script ut below accordingly.

Third, I created a small script that uses up all available CPU. I don't do shell scripting, so this is a python script. I created a file /usr/local/bin/utmakebusy with the following contents:
#!/usr/bin/python
x = 0
while 1:
x += 1

Make this executable with the command sudo chmod +x /usr/local/bin/utmakebusy

Fourth, a script that runs utmakebusy in the background at low priority and then runs the game. The file name is /usr/local/bin/ut, with the following contents:
nice -n 19 /usr/local/bin/utmakebusy &
sleep 3
/opt/ut/ut
killall utmakebusy

This script also needs making executable. Now you can start Unreal Tournament with the command ut and all shoud be well.

aidanr
December 17th, 2006, 11:36 AM
nice, must try this out:KS

nfg2u
December 20th, 2006, 10:04 AM
Thank you Thank you Thank you and Cheers Mate is all I can say!
This worked for me!
:)

Dritzen
January 27th, 2007, 01:48 AM
This worked like a charm. Thank you!

Dritzen
January 27th, 2007, 02:21 AM
By the way, you can use utmakebusy with Unreal Gold as well.

I used this script and it works fine for me:

nice -n 19 /usr/local/bin/utmakebusy &
sleep 3
cd /home/username/games/unrealgold
./unrealgold
killall utmakebusy

cookfromfrozen
February 11th, 2007, 11:15 AM
Another thing you could try is to turn off whatever causes the CPU speed to step up/down in the BIOS.

On Intel laptops, this is called SpeedStep and can sometimes be turned off in the BIOS.

On AMD64 chips it is called Cool'n'Quiet.

In some BIOSes it is called different things, such as CPU speed stepping.

szantaii
March 20th, 2007, 06:27 AM
Maybe this could help someone too:

http://www.ubuntuforums.org/showthread.php?p=2326019#post2326019

BLTicklemonster
June 13th, 2008, 12:22 AM
http://www.fingel.com/ut/howtos/utonlinux.html

Is what I did.

dr.klepp
August 27th, 2008, 12:12 PM
In fact you can kill the "utmakebusy" after a few seconds when the game is startet. This helps on things like eeepc to keep a cool engine :)

jaypmcwilliams
January 6th, 2011, 03:21 AM
I have seen a number of threads from people where Unreal Tournament (the original GOTY version) runs too fast. Well, my old game turned up behind the sofa last week, so I installed it on my new PC and had the same problem. I found a few suggested solutions, one of which almost worked sometimes.

It seems the problem is with CPUs whos clock rate changes when they get busy, confusing the game timings. One suggested fix ran a second process for a few seconds as the game started, so that the timing loop was calibrated while the CPU was busy. I found that this works sometimes, but not always. I think firstly, sometimes the game finished calibrating before the CPU changed gear. And I also found that joining a network game sometimes caused the came to recalibrate.

I have a solution that works for me, and that is to launch a second process that wastes CPU doing nothing for hte entire duration of the game. This process is launched a few seconds before the game starts to ensure that the CPU has changed speed when the game calibrates, and is run at a low task priority so it doesn't interfere with game play. For me, anyway, the game play is smooth and consistent and always at the right speed.

Firstly, if the installer created a symlink to ut somewhere, you may need to delete that again. You can find out which ut gets executed when you issue the command ut by using the command which ut. You want it to delete this symlink.

Second, I installed ut in the directory /opt/ut. To launch the game without the other stuff, just launch /opt/ut/ut. You may have chosen somewhere different and will need to adjust the script ut below accordingly.

Third, I created a small script that uses up all available CPU. I don't do shell scripting, so this is a python script. I created a file /usr/local/bin/utmakebusy with the following contents:
#!/usr/bin/python
x = 0
while 1:
x += 1

Make this executable with the command sudo chmod +x /usr/local/bin/utmakebusy

Fourth, a script that runs utmakebusy in the background at low priority and then runs the game. The file name is /usr/local/bin/ut, with the following contents:
nice -n 19 /usr/local/bin/utmakebusy &
sleep 3
/opt/ut/ut
killall utmakebusy

This script also needs making executable. Now you can start Unreal Tournament with the command ut and all shoud be well.

YOU'RE AWESOME!!!!!!!!!!!! TOTALLY WORKED!!!! TYVM. I made a few modifications though. I installed UT to my /home/MINE/ut dir & put the 2 files in the home dir too & adjusted the directions in the 2 files. THANK YOU AGAIN, Jay

Artificial Intelligence
January 6th, 2011, 05:42 AM
Necromancing. Thread closed.