mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
a0a95927c4
- 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
19 lines
308 B
Plaintext
19 lines
308 B
Plaintext
// 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;
|
|
}
|