Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running on one core (Linux)

#1
I know that when running on multi-core machines on Linux, you can run your Nexuiz/Xonotic on one core using "taskset" like so:

Code:
taskset -c <cpu number> <Nexuiz/Xonotic startup command>

...with the idea being that these games are single-threaded, meaning running without affinity will only add overhead (iterating unnecessarily over all the processors when one will do).

Does anyone do this often? What results do you see? I'm curious - I did it once, but I'm not sure I was looking for the right things. Would I look for FPS improvements alone? Decreased overall CPU utilization?

Anyway, any feedback would be helpful.
asyyy^ | are you releated to chuck norris?
Reply

#2
(07-15-2010, 07:44 AM)Antibody Wrote: I know that when running on multi-core machines on Linux, you can run your Nexuiz/Xonotic on one core using "taskset" like so:

Code:
taskset -c <cpu number> <Nexuiz/Xonotic startup command>

...with the idea being that these games are single-threaded, meaning running without affinity will only add overhead (iterating unnecessarily over all the processors when one will do).

Does anyone do this often? What results do you see? I'm curious - I did it once, but I'm not sure I was looking for the right things. Would I look for FPS improvements alone? Decreased overall CPU utilization?

Anyway, any feedback would be helpful.
On Windows it makes the game appear more fluent, the fps stay about the same and the overall-cpu usage also stays the same (100% of one core or 25% of all)
It helps against micro-stutters (similar to those on multi-gpu systems).

It should be the same under linux (although this depends on how the scheduler works there)
Reply

#3
(07-15-2010, 09:04 AM)ArgeadGER Wrote:
(07-15-2010, 07:44 AM)Antibody Wrote: I know that when running on multi-core machines on Linux, you can run your Nexuiz/Xonotic on one core using "taskset" like so:

Code:
taskset -c <cpu number> <Nexuiz/Xonotic startup command>

...with the idea being that these games are single-threaded, meaning running without affinity will only add overhead (iterating unnecessarily over all the processors when one will do).

Does anyone do this often? What results do you see? I'm curious - I did it once, but I'm not sure I was looking for the right things. Would I look for FPS improvements alone? Decreased overall CPU utilization?

Anyway, any feedback would be helpful.
On Windows it makes the game appear more fluent, the fps stay about the same and the overall-cpu usage also stays the same (100% of one core or 25% of all)
It helps against micro-stutters (similar to those on multi-gpu systems).

It should be the same under linux (although this depends on how the scheduler works there)
Made no difference. The game is still EXTREMELY glitchy on Ubuntu 10.10 (but that's maybe because it's just an alpha version). The mouse cursor doesn't even work right, when I move the mouse to one position, it 'jumps' back a second later. Very difficult to even make menu selections. It runs just fine on 10.04 though. I'm running on an 8 core system by the way.
Reply

#4
I have a AMD quadcore, and I'm running Ubuntu 10.04. What I have to do is go back to kernel 2.6.31 to get better performance, but I'm guessing it is specific to my hardware wrt the changes Ubuntu made between kernel versions.
asyyy^ | are you releated to chuck norris?
Reply

#5
(07-15-2010, 09:14 AM)IDWMaster Wrote: Made no difference. The game is still EXTREMELY glitchy on Ubuntu 10.10 (but that's maybe because it's just an alpha version). The mouse cursor doesn't even work right, when I move the mouse to one position, it 'jumps' back a second later. Very difficult to even make menu selections. It runs just fine on 10.04 though. I'm running on an 8 core system by the way.

Do you use compiz? You might want to disable that when playing games.
Reply

#6
(07-17-2010, 02:16 AM)Mr. Bougo Wrote: Do you use compiz? You might want to disable that when playing games.

We could provide an automated installer for /usr/share/xsessions/xonotic.desktop, autodetecting xonotic path.
This way there's no compiz or anything else disturbing in the background...
Reply

#7
I'm not sure about this... Those who want that can make their own one-line script to launch xonotic in a separate X session, it's too hacky to provide it officially (painful switching between sessions)
Reply

#8
(07-17-2010, 02:16 AM)Mr. Bougo Wrote:
(07-15-2010, 09:14 AM)IDWMaster Wrote: Made no difference. The game is still EXTREMELY glitchy on Ubuntu 10.10 (but that's maybe because it's just an alpha version). The mouse cursor doesn't even work right, when I move the mouse to one position, it 'jumps' back a second later. Very difficult to even make menu selections. It runs just fine on 10.04 though. I'm running on an 8 core system by the way.

Do you use compiz? You might want to disable that when playing games.

I tried turning off Compiz, and it made no difference. It worked when I re-installed Ubuntu though.
Reply

#9
Weird... :x
Reply

#10
Quote:Those who want that can make their own one-line script to launch xonotic in a separate X session, it's too hacky to provide it officially (painful switching between sessions)

Yep, agreed on that. Downstream distributors of the project (like Debian packagers or Ubuntu MOUs) can add those features if they'd like. We can't guarantee much on that front. Perhaps a wiki entry to make it easy for people to run under a different session so would be good, though.

tankmiche - care to explain how you run under a different session? I can take a stab at creating the wiki entry.
asyyy^ | are you releated to chuck norris?
Reply

#11
(07-19-2010, 07:31 AM)Antibody Wrote:
Quote:Those who want that can make their own one-line script to launch xonotic in a separate X session, it's too hacky to provide it officially (painful switching between sessions)

Yep, agreed on that. Downstream distributors of the project (like Debian packagers or Ubuntu MOUs) can add those features if they'd like. We can't guarantee much on that front. Perhaps a wiki entry to make it easy for people to run under a different session so would be good, though.

tankmiche - care to explain how you run under a different session? I can take a stab at creating the wiki entry.

Sure, put this in /usr/share/xsessions/xonotic.desktop:

Code:
[Desktop Entry]
Name=Xonotic
Comment=Play Xonotic in a standalone X session
Type=Application
Exec=/path/to/xonotic/all run

To try it, and that's the painful transition Mr. Bougo was talking about:
  • Same user: logout (sic) and re-login choosing "Xonotic" as the X session in the prompt
  • With another user: switch user, then login as the other user choosing the "Xonotic" session.

Please note: the current solution doesn't work because the "all" script wants to be cwdded in the xonotic directory, there should be a "run" helper script or that limit completely removed.
Reply

#12
Or just use this http://freshmeat.net/projects/xgame/

EDIT: well, "just" use this
Reply

#13
Thanks to both of you. I will give it a test and create a wiki entry. I feel so useless (not a C programmer, modeler, or mapper), so maybe in that area is where I can contribute Smile
asyyy^ | are you releated to chuck norris?
Reply

#14
(07-17-2010, 02:16 AM)Mr. Bougo Wrote:
(07-15-2010, 09:14 AM)IDWMaster Wrote: Made no difference. The game is still EXTREMELY glitchy on Ubuntu 10.10 (but that's maybe because it's just an alpha version). The mouse cursor doesn't even work right, when I move the mouse to one position, it 'jumps' back a second later. Very difficult to even make menu selections. It runs just fine on 10.04 though. I'm running on an 8 core system by the way.

Do you use compiz? You might want to disable that when playing games.

No, and it's not weird at all. Even back with my 7950 card I could run compiz (or back then, beryl), at the same time. Compiz does not steal FPS, and even if it did, it wouldn't explain the mouse cursor issue.

My guess is: GLX. The GLX version never worked for me here. Not with beryl, not with compiz(/fusion), not with wmii, not on gentoo, not on archlinux, not ever.
Try the SDL version and it will all be fine.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Xonotic Linux utils updated MarisaG 0 1,959 06-09-2019, 08:23 PM
Last Post: MarisaG
  What's this and why does no one write for it? Antares* 5 4,380 11-17-2016, 09:44 PM
Last Post: Mario
Thumbs Up Typical linux newbie problems (or why Xonotic needs to be on Steam ASAP) poVoq 4 8,734 03-17-2016, 08:10 AM
Last Post: fool
  Xonotic nominated for Linux Game Awards March 2014, VOTE NOW! poVoq 3 6,492 01-28-2014, 01:48 AM
Last Post: Mr. Bougo
Information Xonotic packages in Linux distro repositories edh 4 10,039 02-21-2012, 07:07 PM
Last Post: edh
  Xonotic vs Nexuiz 2.5.2 - Core differences rafallus 13 25,904 02-11-2012, 07:04 PM
Last Post: hutty
  New American server up and running! Lee_Stricklin 0 3,335 12-30-2011, 10:49 PM
Last Post: Lee_Stricklin
  RPM Packaging For Various Linux Distros Antairs 3 4,822 10-03-2011, 12:01 PM
Last Post: Wh1sper
  GPLv2 requires that I place a copyright notice and one more question tux9656 6 6,163 07-22-2010, 06:16 AM
Last Post: divVerent

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-