Skip to content
Framerate monitoring and screen capture for UNIX OpenGL programs
C Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src hack to work with SDL2 which loads glXSwapBuffers dynamically Aug 12, 2016


Frapix is a free utility to view and optionally limit the framerate of
any UNIX OpenGL program. Additionally it lets you capture still images
and videos (image sequences only at the moment) from OpenGL programs.

Essentially frapix, is very similar to the popular proprietary
windows-only fraps program, without being an exact clone.

Copyright (C) 2009-2015 John Tsiombikas <>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. See COPYING for details.

To compile frapix you will need libimago, get it from and install it before continuing

Just type make to compile frapix, then make install as root to install
it system-wide. The default installation prefix is /usr/local, feel free
to modify the first line of the makefile to change this if you prefer to
install somewhere else.

Just prefix the frapix script to any program you wish to run with it. So
for instance: frapix glxgears

Commandline options:
  -f <fps> will attempt to limit the framerate to <fps>.
  -u <interval> same as above, but specifying the interval between
     frames in milliseconds instead of the target framerate.

If you'd rather use frapix with any program ran from a particular
terminal, just export LD_PRELOAD=/usr/local/lib/ and it will
stick. In this case, if you want to set framerate limits as above,
you'll have to use the equivalent enviroment variables:

While running with frappix you may press F12 at any time to capture a
screenshot, which will be saved as /tmp/frapix####.tga, incrementing the
number each time you do so. F11 starts a video capture, which just dumps
a tga sequence in the same way.

The key bindings, and output directory/filenames, should become
user-configurable at some point in the future. For now feel free to edit
frapix.c around line 170 to change them.
You can’t perform that action at this time.