Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do i make a FPS counter?!?!?!
- danboy12342
-
24 posts
How do i make a FPS counter?!?!?!
HI,
i need some help.
i need a fps counter but cant quite make one?
i need some help.
i need a fps counter but cant quite make one?
- codeman1044
-
1000+ posts
How do i make a FPS counter?!?!?!
There's another way to do this that I prefer, as it doesn't mess with the timer. It does take a couple more blocks, but it works fine.
There's going to be a couple of variables: fps (don't show this one) and FPS (the one that you will show)
There's going to be a couple of variables: fps (don't show this one) and FPS (the one that you will show)
Explanation: FPS stands for frames per second. It takes one frame for a forever loop to run once. Therefore, in one second, you can run a forever loop X amount of times based on your FPS. If you keep changing a value by one each frame, that value will reach your fps each second.
Last edited by codeman1044 (May 20, 2019 12:26:42)
- deck26
-
1000+ posts
How do i make a FPS counter?!?!?!
Presumably less reliable as the project slows down. The wait block is less accurate than the timer. There's another way to do this that I prefer, as it doesn't mess with the timer. It does take a couple more blocks, but it works fine.
There's going to be a couple of variables: fps (don't show this one) and FPS (the one that you will show)
- codeman1044
-
1000+ posts
How do i make a FPS counter?!?!?!
I guess… it's just that I prefer it. The fps might be off by one or two frames if it slows down, but I've tested this and it works fine at 20+ fps (never have seen it go lower).
I use a lot of projects that rely on the timer. Just put that code up in case anyone else had the same case.
I use a lot of projects that rely on the timer. Just put that code up in case anyone else had the same case.
- gor-dee
-
1000+ posts
How do i make a FPS counter?!?!?!
I guess you could do
if the timer was used elsewhere (unless it's being reset all the time)
- LifeTecLoverYT
-
33 posts
How do i make a FPS counter?!?!?!
does turbo mode mess up the fps counter?
- LifeTecLoverYT
-
33 posts
How do i make a FPS counter?!?!?!
another fps counter example
Last edited by LifeTecLoverYT (April 24, 2020 10:11:09)
- potatomanABC
-
14 posts
How do i make a FPS counter?!?!?!
bruh that was from FUNUT/Professor Blue… another fps counter example
- Lightthefox
-
13 posts
How do i make a FPS counter?!?!?!
You can do:
i hope its correct
Last edited by Lightthefox (April 13, 2021 09:58:41)
- Ankit_Anmol
-
500+ posts
How do i make a FPS counter?!?!?!
This is GENIUS! thanks for showing me this!!!! put this in your main game loop
- Proforce101
-
100+ posts
How do i make a FPS counter?!?!?!
I LIKE DOGEThis is GENIUS! thanks for showing me this!!!! put this in your main game loop
- ThinkAlt_DJ
-
1 post
How do i make a FPS counter?!?!?!
Thanks for using the fps

if I press to stop, it will change the text that says “infinite” the block is so put this in your main game loop

- helloworldbyeworld
-
1000+ posts
How do i make a FPS counter?!?!?!
This is the simplest FPS counter that doesn’t have this bug that I can think of: Thanks for using the fpsif I press to stop, it will change the text that says “infinite” the block is so put this in your main game loop
- PopzearX
-
26 posts
How do i make a FPS counter?!?!?!
Make variables:
Create a Variable named “Frame” and create another one named “FPS” and then hide Frame!
a real fps counter script:
i hope that helped a lot!
also here is the fps counter project: FPS COUNTER
Create a Variable named “Frame” and create another one named “FPS” and then hide Frame!
a real fps counter script:
i hope that helped a lot!

also here is the fps counter project: FPS COUNTER
Last edited by PopzearX (July 18, 2024 06:01:37)
- Discussion Forums
- » Help with Scripts
-
» How do i make a FPS counter?!?!?!