FPS-independent Tick System?

id: 751170

category: Help with Scripts

posts: 8

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!
Norse7 Norse7 loading
you could try this for 120tps:
when green flag clicked
set [ ticks v] to [0]
forever
change [ ticks v] by (2)
end
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 MineTurte loading

Eventlesstew wrote:

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.
You could use something connected to a universal server such as “days since 2000”. This is how most FPS loggers work.

Eventlesstew wrote:

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 MineTurte loading

--Irrelevant wrote:

Eventlesstew wrote:

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.
it's not that advanced you know?

MineTurte wrote:

--Irrelevant wrote:

Eventlesstew wrote:

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.
it's not that advanced you know?


Ok? A tick system that's seperate from frame rate seems advanced to me!
Malicondi 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.