What is delta time

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    What is delta time
  2. What is the issue? Include screenshots / videos if possible!
    I just want a clear explanation
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yep no luck
3 Likes
1 Like

The Roblox developer API is a great resource,
Delta time is mainly used in RunService

Delta-time is a measure of the difference between frame timings.

So if you were to have a RenderStepped function your delta-time would be equal to the time between the current frame and the previous frame. This is useful for calculations that are dependent on the client’s framerate.

Hope this helps! :slight_smile:

1 Like

I read it but I couldn’t completely understand

deltatime means change in time. in this scenario it means how much time it took to go from the previous frame to the current frame.

1 Like

Delta just means “the difference between”. So delta time would refer to the amount of time that’s passed since some event. In the context of running code on every frame, for example, delta time refers to how much time has passed since the previous frame.

3 Likes

Based on my experience on using delta time on other coding languages, it’s when you have something running on the same speed no matter the framerate. (I could be wrong though.)

1 Like