Yet another Fraps for Linux (name comes from "Frames & Actions Per Second", seriously :)
- launches a special process
faps-daemon
to listen raw key events on/dev/input/eventX
- robustly detects all keyboard devices with
libudev
- works with full screen SDL games which are known to grab the entire keyboard and make
XGrabKey
useless - during install
faps-daemon
is given capabilities withsetcap "CAP_DAC_READ_SEARCH+pe"
and does not require root access during normal operation faps-deamon
measures APM (actions per minute) based on the key press events from the last 10 sec (configurable), with a linear weighting applied (from 0 to 2)faps-daemon
communicates with main program through a fifofaps-daemon
kills itself if client disconnects from fifo, no way to hang in the background- for FPS measuring the library
faps-lib.so
usesLD_PRELOAD
to hook the Xlib buffer swap functionglXSwapBuffers
(does not work with SDL though, need better method) - FPS and APM displayed in overlay
- screen & video capture not implemented yet
On 64 bit systems use make all
to compile both the 64 and a 32 bit version of the dynamic library (requires the [multilib]
version of your dev tools to be installed; see Arch Wiki for details).
make all
sudo make install
The 32 bit version is required for Steam. Run Steam with:
faps -p 32 steam
On 32 bit systems and vanilla x86_64 just do the usual:
make
sudo make install
I will make an Arch AUR package when it's complete.
Ctrl + F9
toggle FPS (frames per second) overlayCtrl + F10
toggle APM (actions per minute) overlayCtrl + F11
start/stop video captureCtrl + F12
take screenshot
faps [faps arguments] program [program arguments]
-u N
FPS update interval in msec (default: 1000)-v N
APM update interval in seconds (default: 1)-f N
framerate limit in frames per second-p 32
loads the 32 bit version of the library on a x86_64 system (eg: for Steam beta)-i N
interval in seconds to be used when computing APM (default: 10)
faps is free and unencumbered public domain software. For more information, see http://unlicense.org/.