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

Report as inappropriate.

danpost
danpost presents ...

2014/1/14

Fps Actor Class

The Fps class of this scenario can be added to your projects and just by creating and adding one instance of it into your world, you can adjust the speed and check the number of frames per second the scenario runs.

CONTROLS:
Right clicks on actor increase the speed setting;
Left clicks on actor decrease the speed setting;
Hovering over the actor with the mouse causes it to display the speed setting,
otherwise it displays the frames per second the scenario is running at.

4331 views / 26 in the last 7 days

2 votes | 0 in the last 7 days

Tags: mouse demo with-source actor class fps speed danpost

This scenario is a member of: Support Classes by danpost


open in greenfoot
Your browser is ignoring the <APPLET> tag.
UpupzealotUpupzealot

2014/1/14

Very useful! But I thought it's actullay APS(act loops per sec). Since ot every act loop was painted in Greenfoot.
danpostdanpost

2014/1/14

@Upupzealot, I believe you are technically correct. You could, however, consider what happens in one act loop as a frame, in general terms.
UpupzealotUpupzealot

2014/1/15

Yeah, and I named it "logic frame" in my mind. XD
A new version of this scenario was uploaded on 2020-10-06 13:22:33 UTC
A new version of this scenario was uploaded on 2020-10-06 14:39:22 UTC
A new version of this scenario was uploaded on 2020-10-06 14:54:57 UTC
Roshan123Roshan123

2020/10/7

Size - 350kb Size on disk - 650kb Avg fps - around 40-60 Will the scenario lag in the site??? Will this help me to know the scenario lag
RcCookieRcCookie

2020/10/7

Probably, like I said I think you get about 10% of the FPS you get offline. In other words, you will probably get ~5fps
danpostdanpost

2020/10/7

@Rosshan123, I presume the sizes are for YOUR scenario. The Fps class only uses about 6KB. The avg seems about right for a scenario running at normal speed. A scenario is more likely to lag on the site than off. This should give you an idea of how bad your scenario lags, if at all.
A new version of this scenario was uploaded on 2020-10-29 08:49:10 UTC

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

Who likes this?

nolttr21 Entity1037