forked from teamnwah/openmw-tes3coop
879cc132d5
- latest Monster source git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@81 ea6a568a-9f4f-0410-981a-c910a81bb256
17 lines
285 B
Text
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;
|
|
}
|