openmw-tes3coop/mscripts/fpsticker.mn
nkorslund 879cc132d5 - improved the fps ticker
- latest Monster source


git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@81 ea6a568a-9f4f-0410-981a-c910a81bb256
2009-01-16 12:56:54 +00:00

17 lines
285 B
Text

// Small script that prints the FPS to screen with regular intervals.
singleton FPSTicker;
import io, timer;
ulong lastFrame;
float delay = 1.5;
state tick
{
begin:
sleep(delay);
print("fps:", (frames.counter-lastFrame) / delay);
lastFrame = frames.counter;
goto begin;
}