Solve Urban Terror Graphic Problems with Affinity
PreviousN writes: …about a year and a half ago I built what I thought would be a rockin’ computer. I was an early adopter of the AMD Phenom 9500 (I didn’t know about the memory hole prior to purchasing- OUCH!), a Geforce 8800gs (which overclocks like crazy), 4GB of RAM, and some speedy disk drives in RAID. Urban Terror is really the only game I play and I made the (wrong) assumption that my rig would own it like noobs on h2o’s Texas TDM. After setting up a dual boot (Windows XP and Ubuntu), I powered up Urban Terror and was left with an ugly 50fps taste in my mouth. What could have possibly gone wrong? After much googling I found out that Urban Terror has a well known bug that messes up with CPU scheduling on multi-core processors. Straight from the official Urban Terror FAQ “…people with dual core cpu’s might need to turn off affinity on 1 core…”. My understanding is that the Urban Terror process is opened up and then tossed around like a baseball between processor cores. The constant switching between cores creates a choppy game play and low fps. I’ve stumbled upon Daily Nade’ and wanted to share my knowledge in fixing the problem. Here’s how to do it on Windows and Linux. Sorry Mac users, but I don’t own a Mac (Engine’s note: I do and got no problems thank you ).
- Open your Urban Terror directory and start the game.
- Alt-Tab out back to Windows, and right click on the taskbar, choose “Task Manager.” Or just Ctrl-Alt-Del.
- Right click on the Urban Terror process, choose set Affinity.
- Uncheck all but one processor core.
- Bask in better fps glory and own some noobs in UrT.
Ubuntu: There is a great amount of arguing among Linux enthusiasts over whether manually setting affinity should be required. I don’t care which side of the fence you’re on but to me results (and what “does happen”) matters more than what “should happen.” Setting affinity manually makes so much of a difference for me that I will never again play Urban Terror competitively without setting it manually.
- Open a terminal. This can be done by navigating to the Applications menu. Choose “Accessories” –> “Terminal.”
- Type “sudo apt-get install schedtool” without the quotes. You’ll be prompted for your password. You are now installing the scheduling tools for Linux.
- Start Urban Terror. For me, this means double-clicking on “ioUrbanTerror.x86_64”.
- In the terminal you used to install schedtools, type “top” and hit enter. This gives you a list of processes and how much CPU/RAM they are using.
- Open a new terminal. A shortcut to do this (if you are still focused on Terminal) is “shift-ctrl-n”. Type in “schedtool –a (CPU #, starting with 0) PID (from top)”. So, “schedtool –a 0 6297” would make process 6297 (Urban Terror in my screenshot) have an affinity for CPU0.
- Enjoy smoother gameplay! Tip: In Urban Terror, I get better FPS on Linux versus Windows.
- For an automated solution, create a gnome launcher or script that contains something similar to this: “schedtool –a 0 –e /pathtoUrT/ioUrbanTerror.x86_64”. Replace “pathtoUrT” with the path to Urban Terror, and the script will launch Urban Terror with an affinity for CPU0.
- So for me, the command looks like this: “schedtool -a 0 -e /media/Shorty/UrbanTerror/ioUrbanTerror.x86_64″
That’s all! Now go out there and enjoy some improved performance! Best, PreviousN
- Ubuntu 9.10 & Urban Terror Readers at the Ubuntu Forums are reporting that the upgrade to Ubuntu 9.10 is causing strange behavior with mouse movement in Urban Terror and other 3D games. Worse is that some are reporting random crashes and runaway processes that can only be stopped with the kill command. It seems that a fix has been found [...]...
- Funny minigames hidden in Urban Terror Did you ever played Team Survivor and died first? Isn't it annoying? You have to wait for the round to end, and if they don't find each other it will take forever. Kinfe is boring. So what are you going to do? I found myself playing with the iPhone in the meantime, but thanks to Fleet I've discovered two minigames hidden inside Urban Terror. Let's play some games!...
- Urban Terror Server: 64 slot madness! A 64 players slot is possible? Apparently yes. The WarriorTeam clan from Italy managed to set up a 64 player server for UrbanTerror. How is it? Let's find out with this review!...
- Urban Terror Aim Settings Basics This is a long awaited post. There are a few variables that you can use to improve your mouse precision besides sensitivity. These variables can really help, in conjuntion with a good mouse to improve your aim skills. Today we are going to take a look just at the basics, since the topic is really [...]...
- Could Urban Terror become the next Counter Strike? The next Urban Terror update is gonna be really important. In my opinion is gonna equal the importance that the 3.0 and the 4.0 had in the past. The 3.0 and the 4.0 created the game, but the next relase is going to perfect it. Urban Terror 4.2 is really going to tell if Urban Terror is going to [...]...