new param 'frameDelta' on every render() function

This commit is contained in:
minjaesong
2024-01-04 16:38:58 +09:00
parent f2ecb109e6
commit f54a2133f9
116 changed files with 374 additions and 348 deletions

View File

@@ -37,14 +37,14 @@ object ConsistentUpdateRate : GameUpdateGovernor {
var i = 0L
while (akku >= tickInterval) {
App.measureDebugTime("Ingame.Update") { updateFunction(tickInterval) }
App.measureDebugTime("Ingame.Update") { updateFunction(tickInterval) } // update-delta
akku -= tickInterval
i += 1
}
App.setDebugTime("Ingame.UpdateCounter", i)
/** RENDER CODE GOES HERE */
App.measureDebugTime("Ingame.Render") { renderFunction(tickInterval) }
App.measureDebugTime("Ingame.Render") { renderFunction(deltaTime) } // frame-delta, should be identical to Gdx.graphics.deltaTime
}
override fun reset() {