mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
examples/vector: Add FPS
This commit is contained in:
parent
8a42e8d808
commit
17e16e5759
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user