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?"

33 of 155 comments (clear)

  1. Sure by crmartin · · Score: 2, Funny

    ... rogue runs on Linux.

    Damn young whippersnappers, anyway.

  2. 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.

    1. Re:you don't necessarily need a WM by Anonymous Coward · · Score: 2, Informative

      I prefer
      xinit -- :1
      which sets up a seperate X11 on CTRL + ALT + F8.

      This way you can use icq / irc / firefox on your main WM. And if the game crashes / freezes it dosn't take the WM (+ everything else you have open) with it.

      I mostly do it because theres no easy way to switch out of iD's linux games without taking forever to reload the textures. (I also use slack + flux, I don't do it for the resources)

      I remember reading somewhere how to set up XQF to start a seperate X11 session like this when you start a game, but could never get it to work.

  3. 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.

    1. Re:My favorite by IpalindromeI · · Score: 2, Insightful

      This isn't particular to you, because you didn't come across as crazy, but what is the deal with XFCe anyway? Why does everyone love it so much? I would even compare many of its proponents to Gentoo users in terms of zealotry.

      I use its taskbar (better than gnome's, imo) but its window manager leaves something to be desired. That something is configurability, particularly in terms of key bindings. Sawfish has almost 200 WM actions that can be bound to key or mouse shortcuts. Things like toggling maximization or shading on a window, running a command/program, popping up a menu to edit window features (titlebar style, stickyness, appears on window cycle, etc), deleting a window group, etc. Pretty much anything the WM can do can be bound to a key or mouse shortcut.

      XFCe, on the other hand, says "use xbindkeys". Well xbindkeys can't do most of that WM stuff, but thanks anyway. When I was trying out XFCe and trying to find docs on setting shortcuts to whatever I wanted, I ran across an email on the dev list saying something to the effect of "We will never give built-in shortcut support for many WM actions because of such-and-such standard." Sounds like a project very concerned with its users :|

      Anyway, that's my XFCe rant. I guess it's pretty looking, but Sawfish let's me configure hundreds of things I couldn't in XFCe. I'll stick with what let's me use it rather than feel like I'm being (ab)used.

      --

      --
      Promoting critical thinking since 1994.
  4. 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).

  5. 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.

  6. 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.

  7. Damn good question.. by BrookHarty · · Score: 2, Informative

    I've been wondering this myself. I've gotten CS to work on most distro's, but after getting burnt out for years of trying to get other games working on linux, I've just used my linux boxes for either servers or desktops that needed X.

    Gentoo has some nice patched kernels for gamers, and the gentoo forums are the best forums out there. And then use transgaming to complete it.

    As for a desktop wm, depends on how much functionality you want. The barest wm is twm. But then whats a 150K or so, might as well run IceWM which has a nice taskbar.

    The easiest out of the box setup is Mandrake for gamers, less configuration and config time.

    Just my 2 cents.

  8. twm-gl by jvmatthe · · Score: 2

    I heartily recommend twm-gl for your desktop. It has all the lightness of the original twm window manager but some of the best use of OpenGL acceleration on the desktop you've ever seen.

    What's really amazing is that you can eke out a boost in 3D game performance by using it. Really, one of the best, but lesser known, free software projects. (And since it's free software, I hear that a Windows and MacOS X version is in the works. Awesome!)

    Give it a try.

  9. Re:Use a special purpose machine for gaming. by skyman8081 · · Score: 2, Insightful

    Well, there is supposed to be an xbox port of HL2. Unfortuneatly its all TBA, with 0 screens released.

    Don't give your hopes up on a console port happening. ever.
    --
    Two Roommates and a Boyfriend, updates Monday, Wednesday, and Friday
  10. 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.

  11. 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.
  12. 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.
    2. Re:Really not a troll.... by SillyNickName4me · · Score: 2

      >> Best Configuration for Linux Gaming?

      > How about a windows machine configured right next to your linux box

      Lets see, the person asks very explicitly for a Linux setup. Your answer: Use windows.

      Sure, Windows does better for gaming then Linux due to availability of games and supported hardware, but THAT WAS NOT THE QUESTION. Neither was it a question about dual booting, it was about running games on Linux.

  13. Re:Suggestion by Anonymous Coward · · Score: 2, Insightful

    I feel sorry when people let recursive acronyms tell them what to believe about software. Nevermind that every dictionary definition of emulator clearly applies to WINE and its progeny. We'll trust the stupid name that was clearly picked because any recursive algorithm resulting in the word WINE has to end in E!

    It doesn't even matter if WINE is an emulator or not, in the first place. I'm continually mystified by the myriad of people who feel the need to "correct" anyone that refers to it as such.

    That's just my little nitpick. Other than that the parent post is accurate and helpful.

  14. 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.

  15. Re:Use a special purpose machine for gaming. by Chonine · · Score: 2, Insightful
    Yeah, and while you're at it, go out and buy a typewriter, cd player, a webtv, a dvd player, and a set of oil paint. Why bother with a PC?

    Personally, I play games on a PC not because its my only option, but because it adds an extra level of depth and complexity that you can't find in certain genres on console games. In the same way that image manipulation software lets you go above and beyond what you could do on paper/canvas (for the most part), gaming on a general purpose computer allows much more flexibility than on a static console. Personally I play my PC games in parallel with the console games, but you cant build sophisticated 3d levels for your favorite games on a console, nor can you become part of a sophisticated community based on the modification and extension of a game.

    As to the original question - Linux for me for the id games, all the others on the XP partition.

  16. Suse/Nvidia by miyako · · Score: 2, Informative

    I don't consider myself a "PC Gamer", I generally prefer console games, though I do have a few PC games that I play occasionally (Neverwinter Nights, UT2k4), I ran Linux exclusively for quite a while (I have a mac now as well, though I've never used it for games). I have to say that, in my experience with a few different distro's (pre-fedora versions of redhat, Mandrake, Debian, and Suse), I've found that Suse is really a nice distribution for 3D support- if you use an nVidia card. You can choose at install time if you want open source 3D drivers, or the official nVidia drivers, and if you update your system, getting the drivers working again is as easy as refreshing the install from YaST.
    As for a window manager, Window Maker seems to be pretty light weight, or if you really want to get fancy, you can write a script to drop you out of a window manager completely and just run the game on top of plain ol' X. To be completely honest though, I run KDE most of the time, and have never found it's memory footprint to be a problem even when I'm running rather resource intensive games or applications. I have a buttload of ram though, so YYMV.
    Others have mentioned Cedega, which is not free, though you can get the source free from CVS if you feel like messing about with configuring it and compiling it yourself. AFAIK their licensing doesn't prohibit this, it only prohibits you distributing it to anyone else.

    --
    Famous Last Words: "hmm...wikipedia says it's edible"
  17. 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!
  18. Re:Audio... by Newtonian_p · · Score: 2, Interesting

    Well, ALSA has 3D audio support for Sound Blaster Live! cards (I get 4 channel sound from my DVDs when played with Mplayer using the alsa audio output on my SB Live! 5.1).

    And since version 2, WineX has been able to translate DirectSound 3D into ALSA's 3D API.

    Does Diablo 2 use DirectSound 3D or just EAX?

    --

    There are 2 kinds of people in this world: Those who write in decimal and those who don't

  19. 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
  20. Re:Use a special purpose machine for gaming. by NanoGator · · Score: 2, Insightful

    "Stop making excuses for your Windows partition. You don't need it, remove it."

    Whoever modded this as 'insightful' was being incredibly short-sighted. The simple fact of the mnatter is that Windows is the best OS for PC gaming. If you want to play games only available on PC, and you want to play on-line, then having a Windows partition is not an 'excuse'. A PS2 or GameCube is an alternative, but not always an ideal one.

    Do yourself a favor and quit kidding yourself. If you're avoiding games because you hate Microsoft, you really are taking things way too seriously.

    --
    "Derp de derp."
  21. Re:Yup. by Yorrike · · Score: 2, Informative
    Add me to the Gentoo gamers list. The best reason to use Gentoo is that portage has many game binaries ready to go, for example, last night I wanted to blast a few things, so I whipped out my UT2003 CDs, typed "emerge ut2003" as root, followed the installer's instructions and was killing things in less than 20 minutes.

    I run openbox on XOrg for my desktop environment, since I like a clean , fast, no nonsense desktop that relies on hotkeys rather than stumbling around with the mouse.

    The only time I use Windows for gaming is when I go to LAN parties, as it's usually quicker to get games going on Windows. The good news is more and more games are being released with Linux clients, and I think the next few years will see Linux clients being fairly normal with major game releases.

    --

    Looks can be deceiving. Or CAN they?

  22. 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.

  23. Re:Use a special purpose machine for gaming. by Atzanteol · · Score: 2, Insightful

    Slashdot: Where personal oppinion is fact!

    --
    "Ignorance more frequently begets confidence than does knowledge"

    - Charles Darwin
  24. Well... I think that I might have found by empaler · · Score: 2, Funny

    a possible reason that he might remember...

  25. Re:Simple Solution.... by bryhhh · · Score: 2, Informative

    Unfortunately VMWare 4.x (on a linux host) doesn't support the level of Direct X required for most games. So unfortunately that won't work. - I tried this not to long ago. But if you have a windows license anyway, why not just throw a second disk in the box and install a native copy of windows on it?

    I'm a believer in using the right tool for the job. This is why I have a Linux web, mail & file server, and my games machine is a windows box. - That's not to say Linux isn't any good for games, but for me the games I want to play require windows, and transgaming/winex isn't an option for me.

  26. Fall 2004 State of Linux Gaming by The_Dougster · · Score: 2, Informative
    My system is a dual-boot machine with Gentoo and Win2k. I leave my Win2k partition obviously for games that I will probably only play once and then uninstall them, and for other stuff that just isn't going to run under Wine, like Freelancer for instance. I spend most of my time in Linux, but sometimes I just want to play one of the Windows games so I'm not ashamed to say that I'll reboot into Win2k once in a while.

    On the Linux side of things, I run Gentoo and just use the regular old Gnome desktop with Nautilus even. My system is fast enough to keep up with it, and Athlon-XP 2400, GeForce FX-5900, 1G of RAM, a fast 120G HD, 20" Monitor, SBLive! sound card, and some USB joysticks and game pads. I use the JFS filesystem in Gentoo because it has the lowest CPU usage and its speed is comparable with the other guys.

    One of the greatest things for the Linux gamer is DOSBox. Using that program, I can play Wing Commander: Privateer, and X-COM UFO Defense in Linux. You can adjust the speed of DOSBox so the game feels about right. You know its getting pretty good if it can run Privateer (which is now abandonware and a free download from The Underdogs). In fact, you can probably run most of the great old DOS abandonware games in DOSBox with zero problems now. This one program increases your Linux gaming library to thousands of freely available commercial quality games.

    Next are the nice commercial games which have a linux port. Neverwinter Nights and Doom3 stand at the forefront of the pack and run great on my system. Also there are great ports of Quake1/2/3, RtCW, Duke Nukem 3D, Hexen 1/2, and Doom.

    After that, you enter the realm of Open Source games, with great titles like the Ur-Quan Masters, Vega Strike, Battle for Wesnoth, and any of the thousands of other games listed at The Linux Game Tome. Having Gentoo is an advantage here because the compiler toolchain is particularly strong, so its easy to compile and try out the latest cutting edge CVS versions of these in-development games.

    Then you have the Wine and Cedega games. I use this for Jagged Alliance 2, Fallout1/2, and Diablo II. These (and other) well programmed games are totally playable in Wine, so there's no reason to have to special boot to windows just to play them, might as well just use Wine to play them. The windows versions of most of the old Loki games that are now broken typically work under Wine.

    I won't even go into the other emulators, but suffice it to say that there are emulators for most consoles, such as ZSNES, and arcade games, like MAME. There are thousands of games which will work great using these things. I sometimes boot up ZSNES and play some ShadowRun.

    Which leads me finally to the unfortunate state of the Loki titles. A lot of these are linked against older libs and may or not work on a new system without some serious fiddling around and building of compatibility libs. Some still work, some don't, but chances are that they will all eventually die of bit-rot. Poor Loki Games, you are missed.

    I've been doing serious Linux gaming since 1998. There are tons of great games available, thousands that can be emulated, and the best part is if you want to take a hand at making your own games, you have every tool and library under the sun right there at your fingertips.

    --
    Clickety Click ...
  27. 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.

  28. Haha, I love their 404 page. by mindaktiviti · · Score: 2, Funny

    Tried to check out a screenshot
    .

    > look
    It is pitch black. You are likely to be eaten by a grue.

    > find link
    You stumble around trying to find http://icculus.org/projects/twmgl/screenshot1.jpg, but your hands grasp nothing except dirt and rock. You eventually touch something solid, and lift it up. As you bring it to your eyes, you squint to find that it is an electronic root kit of high-jump.

    > quit
    Your score is 25 out of a possible 375. This gives you the rank of hoser.
    Are you sure you want to give up [y/N]? : y