From fcca95dfa88b35f20e5aebf006135751e7f333a8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 4 Oct 2019 01:51:26 +0900 Subject: [PATCH] examples/set: Add FPS to see the performance --- examples/set/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/set/main.go b/examples/set/main.go index 74b0f6b33..9b75ec13d 100644 --- a/examples/set/main.go +++ b/examples/set/main.go @@ -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 }