This will be useful to you as a programmer, as it essentially tells you what fraction of a second has passed, and you can adjust how fast animations happen as a result. For a player who’s running at 24 FPS this will be approximately 1/24th of a second or 0.04166.s, for a player who’s running at 60 FPS it will be approximately 1/60th of a second, or 0.0166.s, and at 144 FPS, it will be approximately 0.006944.s. This is also called Step, or shortened to s in some scripts. The good thing is, every frame an argument is passed through RenderStepped, called Delta, what this tells us is the time that it took between the last frame and the current frame. There will also be cases where players will have framerates below 60FPS, in this case, it is going to cause animations to be slower for them, which will make the user experience worse. This is because there is less time between frames. What you’ll notice is, as frame rate increases, the animation speed also increases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |