Skip to main content
Edited tags.
Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61
Tweeted twitter.com/#!/StackGameDev/status/598794693661581312
Source Link

How to stop deltaTime while debugging

Framework: LibGDX

IDE: Android Studio

Game based on Kilobolt tutorial

While debugging, the frame delta time i get using Gdx.graphics.getDeltaTime()continues to increment so when i stop debugging and return to application, everything is fast (it is related to runTime, so delta time too)

runTime is calculated in GameScreen class, which increments it with deltaTime and then passes it to GameWorld and GameRenderer methods calls.

How can i stop it while debugging?