The following is a guide to running steam with more up to date packages tuned for archlinux.
As a note, Arch Linux is not a officially supported distro; however, I find that the stability of steam and especially game performance is better using arch's environment than the bundled steam runtime. On my system, portal went from ~3 fps to ~25 with Intel 4000 HD graphics.
Now, the idea behind this is that the steam runtime is rarely updated, but there as always atleast 1 package it depends upon which updates in a given week's time. Furthermore, compiled libraries included are made for generic i686 (32 bit) or the original x86_64 (64 bit) architectures. By installing packages with performance improvements and/or tuning to your machine, better performance all around will result. There is also a fun side effect that if your game has a bug, this may fix it or intriduce new bugs! Yay!
First, lets get arch exclusive stuff out of the way. We will be modifying the build and runtime environment. run 'sudo nano /etc/makepkg.conf'. Go to the line where it starts as
'CFLAGS="'. Remove the '-mtune=<X>' argument. Change '-march=<X>' to '-march=native'. Change '-O2' to '-Os'. Do the same for the line that starts 'CXXFLAGS="'. A few lines down from that should be a line starting with 'MAKEFLAGS="'. Add the argument '-j
The reason for this is to remove obsolete options ('-mtune'), improve optimizing towards your machine ('-march=native'), and for systems with high cache to memory speed ratios, the more data that can be kept in the CPU cache, the better, so optimizing pacages for size ('-Os') results in better performance.
Second, a number of 32 bit packages need to be installed. The following is a list of ones I have tracked down, but is by no means complete: libusb, sdl2, stdlib, networkmanager, polkit, pam, libjpeg-turbo, openal, pulse audio, glib, gtk, gdk, gdk2, d-bus, openssl, gcc, flac, ogg-vorbis, libtxc_dxtn, multilib-devel, ttf-liberation, ttf-microsoft-arial, ttf-ms-win8, ttf-office-2007-fonts, ttf-win7-fonts, ttf-ms-fonts. from archlinux, every multilib package (32 bit packages tuned to run on 64 bit machines) has a prefix 'lib32-'. While I do not list the exact packages needed here, all of them are findable through google and resolve to archlinux.org
. I suggect using yoaurt (https://wiki.archlinux.org/index.php/yaourt)
to install these, as it will save hours of work. If you have a 64 bit installation, you will have to enable the multilib repositories, which will not be detailed here.
Next, assuming difficulty in finding packages or my package listing is incomplete, you will know all requirements have been installed once the following is empty: 'ldd ~/.steam/bin/steamclient.so | grep -nlH "*not found*"'. While this and google should be sufficient, this page lists many side packages which may or may not be installed: https://wiki.archlinux.org/index.php/Steam/Game-specific_troubleshooting
Thirdly, test is steam will run. In a terminal, run the following: 'STEAM_RUNTIME=0 steam'. What this does is tell steam to use the system's environment rather than the bundled steam environment. If steam starts, you're almost done! If not, return to section 2.
Fourthly, you will be wanting to have the environmental variable 'STEAM_RUNTIME' exist and set to 0. to do this, I suggest adding this line in '~/.bashrc', 'env STEAM_RUNTIME=0'
Post corrections, comments, and smart remarks below. Happy gaming!