Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Does libgdx implement the game loop for you?

$
0
0

Initially, I assumed that the developer has to implement the game loop because libgdx is a library – not an engine. But then I found out that Graphics has getDeltaTime() and getRawDeltaTime() so I assume that the game loop is already implemented.

If it is implemented, could someone explain what method libgdx uses? I’m mainly referring to this article. My guess is that it uses a semi-fixed time step? If that’s the case, then why might getDeltaTime() “be smoothed over n frames?” How exactly is getDeltaTime() smoothed?

If the game loop is not implemented, what is the purpose of getDeltaTime() when you have getRawDeltaTime()?


Viewing all articles
Browse latest Browse all 434

Trending Articles