Slashdot Mirror


Best Configuration for Linux Gaming?

werjman asks: "I'm interested in switching completely to Linux but the only thing holding me back is the gaming. What I really want to know is what distro, graphical environment, Window Manager, and so forth are low on the system resources and play games great (and by games, I mean 3D accelerated memory hogs). Does anyone out there actually use Linux as a gaming platform?"

15 of 155 comments (clear)

  1. you don't necessarily need a WM by bersl2 · · Score: 3, Insightful

    If it's a fullscreen 3D game that you want to devote as much of your resources as you can, you can change your runlevel so that you login on the console. Then just use xinit. I personally use fluxbox on Slack 10 though, on an older P4 2.0GHz and a Geforce3 Ti200, and I get decent play with most settings between medium and low on UT2k4.

  2. My favorite by phoenix.bam! · · Score: 4, Informative

    www.xfce.org xfce is my favorite (of course this is an opinion). It doesn't seem as barebones are fluxbox yet is light and fast.

  3. Why use a window manager at all? by Anonymous Coward · · Score: 3, Informative

    Fire up X with nothing in your .xinitrc or .xsession except for the line to launch your game. X is stopped when your game terminates.

    Stop sshd, inetd, any web servers, any mail serers, reschedule any cron jobs for while you are at work or sleeping, and absolutely do not use gdm or other login display manager.

    If you are the sort of person who wants to get every last fps possible, then I suppose you could use Gentoo and compile everything with all optimizations for your platform (Gentoo is the easiest way to accomplish this). You just type exactly what each step tells you in the Gentoo installation manual, and it very easy (just don't try this for anything more important than your gaming machine).

  4. Re:Suggestion by AresTheImpaler · · Score: 3, Informative
    WINE is not an emulator. The wine team is trying to implement the windows api in another system. It works well for several games but it is horrible for others. The biggest problem is with directx.

    As for your original question, I would recommend using any light weight window manager. openbox, blackbox, etc. You could move from gnome or kde to one of these when you are going to play a game. Also, I recomend you to buy an nvidia card. The ati drivers suck badly. I play 3 games on my machine (when running linux) Doom 3, UT 2004, and Enemy territory.

    I forgot to tell you, that you might want to check this links:
    Wine Application DB"
    Frank's Corner
    To see how to install several windows games in linux.

  5. use the game itself as your window manager by rjforster · · Score: 4, Insightful

    First set your system up without graphical login, which most distributions configure by default.
    To do this edit /etc/inittab and change the default runlevel to 3, this means find the line
    id:3:initdefault:
    which will normally read 5 and change it to 3 (like mine is), Fedora inittab files are well commented and explain what to do, others are probably similar.
    To go into X (the windowing system) you type startx after logging in, this gives you your regular desktop, gnome, kde, xfce, whatever.
    When you are bored with email quit out of X and run your game with (I think)
    xinit /usr/local/games/doom3/doom3

    I read that here

    1. Re:use the game itself as your window manager by Ianoo · · Score: 3, Informative

      What you're doing there is actually loading up X again, but instead of immediately loading and running your normal window manager, you're initing straight in to the game. Considering desktops like Gnome and KDE do take up quite a lot of RAM and spawn various background processes, this is sound advice since it'll cut system resource usage right down and make your game slightly faster. Most 3D games still run in X, of course - since this is the best and easiest place to find full hardware accelerated 3D (OpenGL) on the average Linux desktop box, thanks to the open and closed source drivers for various nVidia and ATI cards.

  6. Hate to say it by jaredmauch · · Score: 3, Interesting
    This is the only reason why i have a dual-boot system. I don't play a lot of games to be honest, but the ones that I do play require me to be stuck in windoze. When I upgraded my (desktop) system to a p4-2.8 htt/1g/radeon9800pro earlier this year (soon i'll have to say 'last year'), i was forced to update to XP from 98. I just couldn't get things to work correctly. I wasn't expecting the HT to work correctly, just act like a single cpu, but the usb, etc..on the mb just did not have 98/me drivers that would work in my setup.

    I took this chance to actually put some cash in m$ pocket when they've been getting "better" on the security, etc... front. Sure, mod me down or whatever for saying these anti-opensource things here. Not like i actually did anything for linux or open source. ;-)

    I've found that this works the best (aside from my PS/2) for my needs. YMMV depending on what you need.

  7. Gentoo kernels... by St.+Arbirix · · Score: 4, Informative

    Gentoo has a few dozen different kernels at your disposal. There used to be a gaming-sources kernel that was based on ck-sources. The other popular kernel in portage for gaming is mm-sources by Andrew Morton (the guy Linus lets go hog-wild with the kernel).

    Kernels not in Gentoo portage but compatible and designed for speed are:
    nitro-sources (ck-sources + reiser4 + framebuffer + other stuff)
    love-sources (community maintained kernel to optimize desktop performance and test "unstable" patches)
    speedy-sources (love-sources w/ reiser4)

    Oh, and looking at the forums nearly everyone uses an nVidia card. So far, nVidia plays nicer with x.org than ATI.

    --
    Direct away from face when opening.
  8. Really not a troll.... by Keebler71 · · Score: 3, Insightful
    Best Configuration for Linux Gaming?

    How about a windows machine configured right next to your linux box. Seriously, it has the pro over a dual-boot at least in that you don't have to reboot to switch operating systems. I recommend a monitor switch to let you use the same monitor for both computers (and of course, allows you to instantly switch). Make sure you get a good one though or your will have some funky artifacts on your screen...

    --
    "It takes considerable knowledge just to realize the extent of your own ignorance." - Thomas Sowell
    1. Re:Really not a troll.... by Trelane · · Score: 3, Insightful
      I'd say the biggest reason not to do that is that not everybody can afford to maintain a Wintendo.

      I personally game on Linux exclusively despite having several copies of Windows around. This is simply because I use Linux all the time, and hated dual-booting (guess I'm just impatient like that. I also hate having to drop everything I'm doing; I usually have lots of stuff going on on-screen). I can't afford to maintain a whole nother box (especially one that has the same specs as my laptop, which is necessarily fast due to the work I do) to run the latest games.

      Better, IMHO, just to pay for Linux games and maybe pick up a few on the discount rack that work via Cedega/Wine. I don't have to be annoyed or maintain two expensive machines, and I get my work done under Linux (I'm honestly much more productive under Linux than Windows), and I help support Linux games with my wallet. A win-win situation for me. Others' views may be different, but those are my reasons.

      --

      --
      Given enough personal experience, all stereotypes are shallow.
  9. Cedega by _aa_ · · Score: 4, Informative

    Cedega is a non-free version of wine with directx capabilities. You can browse their supported games here.

    Of course not all games now-a-days require wine or cedega in order to run on linux. Games like unreal tournament and doom III include fully functional linux versions.

    There are several open source games developed for but not limited to linux. torcs, flightgear, tuxracer are some examples.

    Projects like libsdl are making cross-platform game development easier.

    Probably the biggest problem you'll encounter is building drivers for your video card. I've heard it argued both ways but as I understand it, both nvidia and ati drivers are ass-pains in linux. Nvidia's drivers are free as in beer, not speech. If you don't really care about free-software principles and philosophy then this is not a problem for you. ATI's drivers I understand to perform less than ideally. If you haven't already purchased your video card, I would encourage you to do extensive research beforehand.

    In reality, linux distributions have few differences. Any recent, major distribution should be able to accomodate gameplay. I myself use debian unstable for amd64.

    As far as performance, it really boils down to hardware. My advice is to install the linux distribution of your choice. Once you get glxgears to run, give ut2004demo a try, and if you like the way it works, then stick with linux.

  10. Don't do LFS by CestusGW · · Score: 3, Informative

    For the love of WINE, don't do an LFS system if you want Cedega to work at all. Between my dillying and dallying with RC kernels, nVidia drivers, supporting libraries and GCC versions, I can tell you that every time I do something, I've gotta fix something in Cedega :S So make sure your distro is 'non-volatile' before you take the plunge with Cedega.

    --
    Too much repetition my too much repetition!
  11. been a Linux-only gamer for 3 years by Ender+Ryan · · Score: 4, Informative
    Not counting my PS2 and Xbox(which I'm ashamed of owning...) I exclusively run PC games on Linux. To have a good experience with Linux gaming, you need the right hardware, a sane configuration, and a little bit of knowhow and willingness to experiment.

    If you are very familiar with Linux, you will likely be very satisfied with your experience, and even likely to have fewer problems than your Windows using friends(for games that run on Linux, that is).

    So first off, you need the proper hardware. You _need_ an NVIDIA card. Don't bother with ATI, their drivers are unstable and perform terribly. With NVIDIA, you will be up and running in no time.

    Second, you need a decent sound chip. If you have a laptop, chances are you're screwed, unless you're seriously willing to tinker. You will want a card that supports hardware mixing, all common audio frequencies(many newer cheap cards only support 48000). A SB Live is probably your best bet, unless you know of another card on the market today with those features that is supported well in Linux. If you use the alsa drivers, be sure to load the oss compatibility modules, and you may have to $ echo "binary 0 0 direct" > /proc/asound/card0/pcm0p/oss, to get some games to work. Google is your friend. Substitute "binary" with the actual name of the program, eg. "quake3.x86" or whatever.

    Build yourself a custom kernel, do not include DRI or agpgart. The NVIDIA drivers have their own agp support, with better support for different/broken hardware.

    Get yourself a gig of memory already, and you won't need to worry about your WM. Just don't have any silly CPU consuming applets running.

    If you have to ask what distro to use... well, I don't know quite what to tell you. Any distro can be made to work if you know what you're doing. But since you're asking for a recommendation, I heartily recommend Gentoo. It will, hopefully, teach you a bit more about how your system works, and it is the most flexible of the mainstream distros, IMO.

    Cheers, and good luck.

    --
    Sticking feathers up your butt does not make you a chicken - Tyler Durden
  12. Lightweight window managers? by lsd · · Score: 5, Insightful

    To those of you suggesting that a lightweight window manager is the way to go, I have to ask, what exactly is the point? The last time I did this was back in the early G400 days, when things like CPU meters updating add significant X server context-switch overhead (far more than the under 1% of CPU time such apps might take). It saves some RAM, sure, but think about it:

    1) RAM costs next to nothing these days - 512MB goes for under AU$100 locally.

    2) Even without enough real RAM, this is a classic example of what virtual memory is for. After a quick game, is logging back in to your desktop, reloading all your apps and then getting back to your work really quicker than just leaving the OS to swap your apps back in?

    For me, one of the joys of Linux is the ability to have my desktop and applications open 24/7 for weeks on end. If you're going to log out every time you play a game, you might as well just hit the reboot button in your login manager and go play in XP.

    To answer the topic, I'd suggest an NVIDIA video card (the 6600GT is, by all indications, awesome, and NVIDIA's Linux drivers are better than ATI's), a Creative SB Live! or Audigy card (no need to knock yourself out - an older OEM Live! card will do fine), and an Athlon 64 CPU. There's no Linux-specific reason to go for the Athlon 64 over the P4 (though playing with 64-bit Linux can be fun), but they just seem to be a better chip for the money overall, and a better gaming chip in particular.

  13. Almost anything will work. by Mornelithe · · Score: 3, Informative

    If you've got a computer capable of running a 3D accelerated memory hog, then you've got one capable of running a 3D accelerated memory hog and KDE. It's not a very noticable performance hit.

    Now, if you're trying to run Doom 3 on three-year-old hardware, the case might be different, but if you've got something up to snuff, you shouldn't have much of a problem running almost anything. When I'm in KDE on my machine, I typically have a memory usage of around 200 MB, even after days, with several programs loaded up. Can Doom 3 really not handle itself with 800 MB of ram (assuming about a gig of ram is standard on a gaming machine these days)?

    If you want a lightweight window manager, use XFCE or Fluxbox or something. However, don't listen to people who tell you that on a 3.5 GHz machine with a gigabyte of memory you need to use Ratpoison because anything else uses too much memory. Use whatever you like to look at. You bought a giant machine; you don't need to treat it like a pentium 90.

    --

    I've come for the woman, and your head.