r-lyeh-archived / hertz

:watch: Hertz, simple framerate locker (C++11)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hertz ⌚

  • 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

About

:watch: Hertz, simple framerate locker (C++11)

License:zlib License


Languages

Language:C++ 100.0%