update counter on F3

This commit is contained in:
minjaesong
2021-10-25 15:25:50 +09:00
parent 64475455a8
commit df56f6180e
2 changed files with 8 additions and 4 deletions

View File

@@ -233,9 +233,13 @@ class BasicDebugInfoWindow : UICanvas() {
App.fontSmallNumbers.draw(batch, "${ccY}FPS${ccG}${Gdx.graphics.framesPerSecond.toString().padStart(3, ' ')}", App.fontSmallNumbers.draw(batch, "${ccY}FPS${ccG}${Gdx.graphics.framesPerSecond.toString().padStart(3, ' ')}",
(App.scr.width - 3 - 15 * TinyAlphNum.W).toFloat(), line(2)) (App.scr.width - 3 - 15 * TinyAlphNum.W).toFloat(), line(2))
// global render counter // global render counter
App.fontSmallNumbers.draw(batch, "${ccO}${App.GLOBAL_RENDER_TIMER.toString().padStart(10, ' ')}", App.fontSmallNumbers.draw(batch, "${ccO}R${App.GLOBAL_RENDER_TIMER.toString().padStart(9, ' ')}",
(App.scr.width - 35 * TinyAlphNum.W - 2).toFloat(), line(1)) (App.scr.width - 35 * TinyAlphNum.W - 2).toFloat(), line(1))
(ingame as? TerrarumIngame)?.let {
// global update counter (if applicable)
App.fontSmallNumbers.draw(batch, "${ccO}U${it.WORLD_UPDATE_TIMER.toString().padStart(9, ' ')}",
(App.scr.width - 35 * TinyAlphNum.W - 2).toFloat(), line(2))
}
/** /**
* Bottom left * Bottom left
*/ */

Binary file not shown.