examples/set: Add FPS to see the performance

This commit is contained in:
Hajime Hoshi 2019-10-04 01:51:26 +09:00
parent 38ee9113ee
commit fcca95dfa8

View File

@ -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
}