clock: Update a comment

This commit is contained in:
Hajime Hoshi 2020-10-17 16:08:41 +09:00
parent 974ec525fa
commit e7a3d29af5

View File

@ -81,7 +81,7 @@ func calcCountFromTPS(tps int64, now int64) int {
count = int(diff * tps / int64(time.Second))
}
// Stabilize FPS.
// Stabilize the count.
// Without this adjustment, count can be unstable like 0, 2, 0, 2, ...
if count == 0 && (int64(time.Second)/tps/2) < diff {
count = 1