ebiten: Update comments about CurrentFPS and CurrentTPS

This commit is contained in:
Hajime Hoshi 2021-09-08 22:45:26 +09:00
parent 65943d4bad
commit f08aea7b9c

4
run.go
View File

@ -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()