examples/vector: Add FPS

This commit is contained in:
Hajime Hoshi 2019-12-29 23:02:28 +09:00
parent 8a42e8d808
commit 17e16e5759

View File

@ -175,7 +175,7 @@ func update(screen *ebiten.Image) error {
drawEbitenLogo(screen, 20, 90)
drawWave(screen, counter)
ebitenutil.DebugPrint(screen, fmt.Sprintf("TPS: %0.2f", ebiten.CurrentTPS()))
ebitenutil.DebugPrint(screen, fmt.Sprintf("TPS: %0.2f\nFPS: %0.2f", ebiten.CurrentTPS(), ebiten.CurrentFPS()))
return nil
}