mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples/set: Add FPS to see the performance
This commit is contained in:
parent
38ee9113ee
commit
fcca95dfa8
@ -59,7 +59,7 @@ func update(screen *ebiten.Image) error {
|
||||
}
|
||||
|
||||
screen.DrawImage(offscreen, nil)
|
||||
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