This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2014/1/13

FPS Checker

Simple speed checker.

Click on green arrows to adjust speed. Speed set by use of 'Greenfoot.setSpeed'.

30175 views / 33 in the last 7 days

4 votes | 0 in the last 7 days

Tags: demo with-source fps speed danpost

open in greenfoot
Your browser does not support the canvas tag.
Super_HippoSuper_Hippo

2014/1/13

Up to 1.1 million. Where is the highscore table? ;) Would be good if you could also a key instead of clicking on it.
A new version of this scenario was uploaded on Tue Jan 14 00:08:45 UTC 2014
danpostdanpost

2014/1/14

@Super_Hippo, my attempt was to create this scenario with as little code and with as much simplicity as possible to prevent lag at faster speeds. It has zero Actor classes, but four Actor objects (left and right arrows and the two displayed texts) and four global fields (two booleans for control and two ints -- speed setting and frame counter). Another thing is, with using keys, I would have to use 'getKey' as the change in speed of the scenario would totally mess with 'isKeyDown' (and I am not even sure if 'getKey' would not be messed with -- might have to test that).
RUMMAKERRUMMAKER

2014/1/14

seems useful, now i can tell how much my game lags :P
Entity1037Entity1037

2014/1/14

Would it be possible to contain all of the code into one actor that can be inserted in any world and have it effectively display the FPS (for convenience sake)?
Entity1037Entity1037

2014/1/14

Or would it be unable to accurately calculate the FPS if it was just in one actor?
Entity1037Entity1037

2014/1/14

Actually nevermind.... No Idea how it's carrying through worlds.... I obviously need to learn more.
danpostdanpost

2014/1/14

@Entity1037, I uploaded a new Fps actor class scenario for just that.
A new version of this scenario was uploaded on 2020-10-29 08:59:11 UTC

Want to leave a comment? You must first log in.

Who likes this?

GustavSkou ZenVolka Entity1037 RUMMAKER