Hertz :watch:

December 5, 2015 ยท View on GitHub

  • Hertz is a simple framerate locker (C++11)
  • Hertz features auto-frameskip.
  • Hertz features dynamic/variable framerate locking.
  • Hertz is tiny (~75 LOC), cross-platform, self-contained and header-only.
  • Hertz is zlib/libpng licensed.

API

double /*fps*/ hertz::lock( 60 /*Hz*/, []{/*logic*/}, []{/*render*/} );
          void hertz::unlock(); // quit

Changelog

  • v1.0.0 (2015/12/05): Add unlock function
  • v1.0.0 (2015/09/19): Initial commit