tweaked framerate

This commit is contained in:
2023-03-05 19:40:18 +11:00
parent 7f7e5a56c9
commit f42ee8b655
5 changed files with 14 additions and 11 deletions

View File

@@ -31,8 +31,8 @@ fn onInit(node: opaque) {
}
fn onStep(node: opaque) {
if (++stepCounter >= 60) {
print "FPS: " + string drawCounter + " / 60";
if (++stepCounter >= 30) {
print "FPS: " + string drawCounter + " / 30";
stepCounter = 0;
drawCounter = 0;
}