Linux kernel and game performance?
dank at kegel.com
Mon Oct 25 18:26:09 CDT 2010
I've run into two web sites that claim that the Linux kernel causes performance
problems in particular games (see below). Anybody know of others?
And has anybody found concrete improvements in performance
of a particular app (other than an audio workstation app) from using
a realtime kernel?
says in a section dated September 2008:
"If you are having problems with choppy video every 15 seconds or so,
it is related to the kernel scheduler...
to fix, add CONFIG_SCHED_DEBUG=y to your kernel config, then set
Yikes. Any truth to that rumor?
"The game runs too slowly
Instead of running at about 60-62fps, like the game is supposed to,
it'll run closer to 53fps. This is not ideal.
This is a Linux timing issue. The game runs a secondary timing thread
with THREAD_PRIORITY_TIME_CRITICAL, where it simply sleeps for 16ms
and sends events to the main thread to tell it that a new frame is
needed. On Linux the necessary timing accuracy is not available, so it
wavers between 16ms and 20ms.
I hacked around this by setting the timer period to 14ms. This leads
to a steady 62-63fps. Which is close enough for use, really. For a
constant 60fps turn on vsync in your video drivers."
More information about the wine-devel