trying to get smooth delta (because fuck you GDX)

This commit is contained in:
minjaesong
2019-01-20 20:13:56 +09:00
parent b4d97fc42e
commit 38c847443c
5 changed files with 113 additions and 22 deletions

View File

@@ -411,7 +411,8 @@ object Terrarum : Screen {
}
override fun render(delta: Float) {
AppLoader.debugTimers["GDX.delta"] = delta.times(1000_000_000f).toLong()
AppLoader.debugTimers["GDX.rawDelta"] = Gdx.graphics.rawDeltaTime.times(1000_000_000f).toLong()
AppLoader.debugTimers["GDX.smtDelta"] = AppLoader.getSmoothDelta().times(1000_000_000f).toLong()
AppLoader.getINSTANCE().screen.render(deltaTime)
//GLOBAL_RENDER_TIMER += 1
// moved to AppLoader; global event must be place at the apploader to prevent ACCIDENTAL forgot-to-update type of bug.