Giter Club home page Giter Club logo

faps's Introduction

faps

Yet another Fraps for Linux (name comes from "Frames & Actions Per Second", seriously :)

Features

  • 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 with setcap "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 fifo
  • faps-daemon kills itself if client disconnects from fifo, no way to hang in the background
  • for FPS measuring the library faps-lib.so uses LD_PRELOAD to hook the Xlib buffer swap function glXSwapBuffers (does not work with SDL though, need better method)
  • FPS and APM displayed in overlay
  • screen & video capture not implemented yet

Installation

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.

Hotkeys

  • Ctrl + F9 toggle FPS (frames per second) overlay
  • Ctrl + F10 toggle APM (actions per minute) overlay
  • Ctrl + F11 start/stop video capture
  • Ctrl + F12 take screenshot

Usage

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)

Unlicense

faps is free and unencumbered public domain software. For more information, see http://unlicense.org/.

faps's People

Contributors

mmn80 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.