Discuss Scratch

gigapouch
Scratcher
1000+ posts

Find FPS

I am trying to figure out how to have a variable that displays the FPS in a game. How is this possible?

I have a Steam account. If you have one too, feel free to add me to your friends list.
Also check out my YouTube channel if you like the outdoors, Minecraft, cars, roller coasters, etc.
NoobyHax
Scratcher
14 posts

Find FPS

Good question! I suggest looking at griffpatch's 3D maze. Somehow he made a variable that shows the FPS on the screen! I hope I helped.
turkey3_test
Scratcher
1000+ posts

Find FPS

It might be:
reset timer
set [framerate v] to ((1) / ((1) - (timer)))

gigapouch
Scratcher
1000+ posts

Find FPS

MasterCard786 wrote:

http://scratch.mit.edu/projects/11506643/

I couldn't really understand the scripts in that project. Is there an alternative example?

I have a Steam account. If you have one too, feel free to add me to your friends list.
Also check out my YouTube channel if you like the outdoors, Minecraft, cars, roller coasters, etc.
resh123
Scratcher
9 posts

Find FPS

Here is how I do it:
when green flag clicked
forever
reset timer
set [frames v] to (0)
repeat until <(timer) > [0.99]
change [frames v] by (1)
end
set [fps v] to (frames)
end

gigapouch
Scratcher
1000+ posts

Find FPS

I'll try that then.

I have a Steam account. If you have one too, feel free to add me to your friends list.
Also check out my YouTube channel if you like the outdoors, Minecraft, cars, roller coasters, etc.

Powered by DjangoBB