Discuss Scratch
- Cuffrox
-
44 posts
FPS block?
Something that shows the FPS of the current project, un-rounded however.
The FPS would fit into “Sensing”
The FPS would fit into “Sensing”
(Frames Per Second)
Last edited by Cuffrox (Oct. 13, 2016 22:49:18)
- Cuffrox
-
44 posts
FPS block?
Sorry, it would be more like this:
FPS:: SensingBut an oval. I dunno how to do that with scratchblocks
Last edited by Cuffrox (Oct. 13, 2016 22:51:50)
- kenny2scratch
-
500+ posts
FPS block?
Is this what you want?
(FPS :: sensing) // maybe with a checkbox next to this
show FPS :: sensing
hide FPS :: sensing
- Cuffrox
-
44 posts
FPS block?
Oh that's how you do it. Thanks man! Is this what you want?(FPS :: sensing) // maybe with a checkbox next to this
show FPS :: sensing
hide FPS :: sensing
- ateesdalejr
-
100+ posts
FPS block?
No support due to the fact that their are multiple existing workarounds that could easily be done by you or anyone else suggesting these blocks. Just search around the scratch wiki a while 

- Cuffrox
-
44 posts
FPS block?
Okay, but that's not that point. Defining an FPS variable is useless waste of time for everyone. Not only that, but most of the methods put your FPS up to 1000 to infinity. Or what if I wanted to do a 1s1s that showed FPS? I don't want to have to search up how to pull FPS from a scratch project everytime I want to show FPS, and I don't want to memorize a script that would do the same thing as just a same No support due to the fact that their are multiple existing workarounds that could easily be done by you or anyone else suggesting these blocks. Just search around the scratch wiki a while
(FPS::sensing)
Last edited by Cuffrox (Oct. 14, 2016 13:42:36)
- ateesdalejr
-
100+ posts
FPS block?
That's what a backpack is forOkay, but that's not that point. Defining an FPS variable is useless waste of time for everyone. Not only that, but most of the methods put your FPS up to 1000 to infinity. Or what if I wanted to do a 1s1s that showed FPS? I don't want to have to search up how to pull FPS from a scratch project everytime I want to show FPS, and I don't want to memorize a script that would do the same thing as just a same No support due to the fact that their are multiple existing workarounds that could easily be done by you or anyone else suggesting these blocks. Just search around the scratch wiki a while(FPS::sensing)

- Cuffrox
-
44 posts
FPS block?
That again leaves us with the issues of 1s1s, and wasting of time and space. I can see where you're coming from but having an FPS object would make things much quicker and more efficient.That's what a backpack is forOkay, but that's not that point. Defining an FPS variable is useless waste of time for everyone. Not only that, but most of the methods put your FPS up to 1000 to infinity. Or what if I wanted to do a 1s1s that showed FPS? I don't want to have to search up how to pull FPS from a scratch project everytime I want to show FPS, and I don't want to memorize a script that would do the same thing as just a same No support due to the fact that their are multiple existing workarounds that could easily be done by you or anyone else suggesting these blocks. Just search around the scratch wiki a while(FPS::sensing)And custom blocks help a ton! The reason it shows infinity by the way is because none of you use mainloops.
Last edited by Cuffrox (Oct. 14, 2016 17:08:48)
- jokebookservice1
-
1000+ posts
FPS block?
A frame is 1/30th of a second usually. I think that it can't know when you've finished renderring the frame, so maybe it should have a block:
Frame rendered::sensingSo that it knows when your frame has finsished?
- happyland440
-
1000+ posts
FPS block?
No support due to the fact that their are multiple existing workarounds that could easily be done by you or anyone else suggesting these blocks. Just search around the scratch wiki a while
Workaround please? I know of none that are hard to do (and don't show your exact framerate).
- MeIoetta
-
1000+ posts
FPS block?
It already was on 3.0 prototype 
It means probraly this suggestion already exists.

It means probraly this suggestion already exists.
- Alberknyis
-
1000+ posts
FPS block?
Yar workaround.
forever
set [timerprev v] to (timer)
do everything you need to here ::grey
set [FPS v] to ((1) / ((timer) - (timerprev)))
end
- liam48D
-
1000+ posts
FPS block?
By the way, the workarounds generally find ticks per second, not frames per second. A tick is basically Scratch going through all the blocks and running the blocks it should. If you don't have any blocks that delay a tick, you're going to get tons of ticks per second.
That should probably get you a more realistic frames per second.
when flag clicked
forever
fps calculation stuff :: custom
wait (0) secs // add this!
end
That should probably get you a more realistic frames per second.
- Cuffrox
-
44 posts
FPS block?
Yar workaround.forever
set [timerprev v] to (timer)
do everything you need to here ::grey
set [FPS v] to ((1) / ((timer) - (timerprev)))
end
I would actually do this:
forever
set [timerprev v] to (timer)
do everything you need to here ::grey
set [FPS v] to (round (((1) / ((timer) - (timerprev)))))
end
Last edited by Cuffrox (Oct. 16, 2016 15:33:59)
- Cuffrox
-
44 posts
FPS block?
3.0 Prototype huh? Hopefully they don't change too much :L It already was on 3.0 prototype
It means probraly this suggestion already exists.
- ateesdalejr
-
100+ posts
FPS block?
The workarounds they are whispering to me in my head.Because it would be helpfulWhy? Support