ingamerenderer: things won't update when the game is paused (e.g. UI open)

This commit is contained in:
minjaesong
2019-03-05 17:45:41 +09:00
parent ea69f28d05
commit d65f0cb17f
10 changed files with 69 additions and 41 deletions

View File

@@ -63,9 +63,9 @@ object BlockPropUtil {
internal fun dynamicLumFuncTickClock() {
// FPS-time compensation
if (Gdx.graphics.framesPerSecond > 0) {
flickerFuncX += Gdx.graphics.deltaTime * 1000f
breathFuncX += Gdx.graphics.deltaTime * 1000f
pulsateFuncX += Gdx.graphics.deltaTime * 1000f
flickerFuncX += Gdx.graphics.rawDeltaTime * 1000f
breathFuncX += Gdx.graphics.rawDeltaTime * 1000f
pulsateFuncX += Gdx.graphics.rawDeltaTime * 1000f
}
// flicker-related vars