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()
?