RenderStepped is an event that is triggered as fast as possible on the client. In other words, it runs each frame.
It returns a single parameter (I refer to this parameter as delta). Delta is the time elapsed between the current RenderStepped frame and the last RenderStepped frame.
The delta parameter is particularly useful because it allows you to run things in-sync with the client's frame rate (allowing for "smooth" animations and calculations). When you describe things as equations and set the equations in terms of delta, you can ensure that no matter what the client's frame rate is (slow or super fast), the animation plays in-sync with the amount of time that has elapsed in real life. |