From 17daf99c3c0a0ed566f70ce601a6e1a21d797cda Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 12 Feb 2019 13:03:32 +0900 Subject: [PATCH] examples/airship: Show FPS --- examples/airship/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/airship/main.go b/examples/airship/main.go index b3bde4523..e25f8de09 100644 --- a/examples/airship/main.go +++ b/examples/airship/main.go @@ -259,7 +259,7 @@ func update(screen *ebiten.Image) error { // Draw the message. tutrial := "Space: Move forward\nLeft/Right: Rotate" - msg := fmt.Sprintf("TPS: %0.2f\n%s", ebiten.CurrentTPS(), tutrial) + msg := fmt.Sprintf("TPS: %0.2f\nFPS: %0.2f\n%s", ebiten.CurrentTPS(), ebiten.CurrentFPS(), tutrial) ebitenutil.DebugPrint(screen, msg) return nil }