What is TimeDelta() expression?

Hey Community. I recently asked about How to get FPS?

I got that there is an extension to do so. So, I downloaded it. After that, I wanted to see how we get FPS so I saw the code of that extension and there, I got a common expression. Its TimeDelta() expression. So I am here to ask you, what is TimeDelta(), what does it return?

In order to understand TimeDelta() you need to know delta time in games look here

In a nutshell, TimeDelta() is a function that returns the number of elapsed seconds since the last frame was drawn. For a game running at 60 frames per second (FPS) it’s 1/60th of a second, or around 0.0167.

2 Likes

Oh, so now I got that