Sha256: 814ab15a3f38599670d756fe566080429d87b6d4edd5a0f529d2892e6a6be8dc
Contents?: true
Size: 463 Bytes
Versions: 34
Compression:
Stored size: 463 Bytes
Contents
#include <Gosu/Inspection.hpp> #include <Gosu/Timing.hpp> namespace Gosu { namespace FPS { int fps, accum, sec; void registerFrame() { ++accum; int newSec = Gosu::milliseconds() / 1000; if (sec != newSec) { sec = newSec; fps = accum; accum = 0; } } } int fps() { return FPS::fps; } }
Version data entries
34 entries across 34 versions & 1 rubygems