1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/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

18 lines
285 B
Plaintext

// 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;
}