mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
879cc132d5
- latest Monster source git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@81 ea6a568a-9f4f-0410-981a-c910a81bb256
18 lines
285 B
Plaintext
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;
|
|
}
|