openmw-tes3coop/mscripts/fpsticker.mn
nkorslund a0a95927c4 - updated to latest Monster svn
- some work on the scripts
- fps counter moved to Monster
- minor updates


git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@80 ea6a568a-9f4f-0410-981a-c910a81bb256
2009-01-14 20:51:17 +00:00

18 lines
308 B
Text

// Small script that prints the FPS to screen with regular intervals.
singleton FPSTicker;
import io, timer;
// This is updated automatically by input/events.d
int frameCount;
float delay = 1.5;
state tick
{
begin:
sleep(delay);
print("fps: ", frameCount / delay);
frameCount = 0;
goto begin;
}