Can setTitle() cause memleak (right before test commit)

This commit is contained in:
minjaesong
2018-11-08 22:42:27 +09:00
parent 3360ab0dfe
commit 1aa90077a4
5 changed files with 21 additions and 18 deletions

View File

@@ -694,7 +694,14 @@ object Terrarum : Screen {
get() = Gdx.input.x
inline val mouseScreenY: Int
get() = Gdx.input.y
/** Bigger than 1.0 */
inline val updateRate: Double
get() = 1.0 / Gdx.graphics.deltaTime
val updateRateStr: String
get() = String.format("%.2f", updateRate)
/** Smaller than 1.0 */
val renderRate = 1.0 / TARGET_INTERNAL_FPS
val renderRateStr = TARGET_INTERNAL_FPS.toString()
/**
* Usage: