From 464c575de617f0231bb98d6259f5ad1e81af611c Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 18 Jul 2018 02:17:06 +0900 Subject: [PATCH] Fix comments --- run.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/run.go b/run.go index 13d5f9f4f..7dfaed164 100644 --- a/run.go +++ b/run.go @@ -35,11 +35,8 @@ const DefaultTPS = 60 // FPS is deprecated as of 1.8.0-alpha: Use DefaultTPS instead. const FPS = DefaultTPS -// CurrentFPS returns the current number of frames per second of rendering. -// -// The returned value FPS (frames per second) that represents how many times rendering happens in a -// second and NOT TPS (ticks per second) that represents how many times logical game updating (a -// passed function to Run) happens in a second. +// CurrentFPS returns the current number of FPS (frames per second), that represents +// how many swapping buffer happens per second. // // CurrentFPS is concurrent-safe. func CurrentFPS() float64 { @@ -566,6 +563,8 @@ func MaxTPS() int { // CurrentTPS returns the current TPS (ticks per second), // that represents how many update function is called in a second. +// +// CurrentTPS is concurrent safe. func CurrentTPS() float64 { return clock.CurrentTPS() }