From f08aea7b9c0434df6618d8e5c60809575ee66e23 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 8 Sep 2021 22:45:26 +0900 Subject: [PATCH] ebiten: Update comments about CurrentFPS and CurrentTPS --- run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.go b/run.go index f779d7efe..eee847fb4 100644 --- a/run.go +++ b/run.go @@ -68,6 +68,8 @@ const DefaultTPS = 60 // On some environments, CurrentFPS doesn't return a reliable value since vsync doesn't work well there. // If you want to measure the application's speed, Use CurrentTPS. // +// This value is for measurement and/or debug, and your game logic should not rely on this value. +// // CurrentFPS is concurrent-safe. func CurrentFPS() float64 { return clock.CurrentFPS() @@ -392,6 +394,8 @@ func MaxTPS() int { // CurrentTPS returns the current TPS (ticks per second), // that represents how many update function is called in a second. // +// This value is for measurement and/or debug, and your game logic should not rely on this value. +// // CurrentTPS is concurrent-safe. func CurrentTPS() float64 { return clock.CurrentTPS()