FPS-independent Tick System?
id: 751170
category: Help with Scripts
posts: 8
Eventlesstew
loading
Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)
Cheers!
Cheers!
Norse7
loading
you could try this for 120tps:
when green flag clicked
set [ ticks v] to [0]
forever
change [ ticks v] by (2)
end
Eventlesstew
loading
That doesn't solve the problem because the “Forever” loop is FPS-dependent. This means that 30FPS projects will have 60TPS, 60FPS > 120TPS, 15FPS > 30TPS, you get the point.
MineTurte
loading
You could use something connected to a universal server such as “days since 2000”. This is how most FPS loggers work. That doesn't solve the problem because the “Forever” loop is FPS-dependent. This means that 30FPS projects will have 60TPS, 60FPS > 120TPS, 15FPS > 30TPS, you get the point.
--Irrelevant
loading
Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)
Cheers!
This looks like it belongs in Advanced Topics. I'm not sure if there's one that can do 120tps btw.
MineTurte
loading
it's not that advanced you know?Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)
Cheers!
This looks like it belongs in Advanced Topics. I'm not sure if there's one that can do 120tps btw.
--Irrelevant
loading
it's not that advanced you know?Hey, I'm making a Scratch Project and I want it to be FPS independent (To support Turbowarp and help with lag) Is it possible to make a tick system that's separate from framerate? (I'm looking for one that can do 120tps)
Cheers!
This looks like it belongs in Advanced Topics. I'm not sure if there's one that can do 120tps btw.
Ok? A tick system that's seperate from frame rate seems advanced to me!
Malicondi
loading
You could likely make an tick system using Delta Time, although I'm not too sure how it would work but, I do know for a fact that you can't have a 120 tps system, as turbowarp only allows 60fps which at most would be 60 tps, that you can see.
I would recommend making a 20 tps or 30 tps system, so that it would work on both scratch and turbowarp.
I would recommend making a 20 tps or 30 tps system, so that it would work on both scratch and turbowarp.