mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
clock: Update a comment
This commit is contained in:
parent
974ec525fa
commit
e7a3d29af5
@ -81,7 +81,7 @@ func calcCountFromTPS(tps int64, now int64) int {
|
|||||||
count = int(diff * tps / int64(time.Second))
|
count = int(diff * tps / int64(time.Second))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stabilize FPS.
|
// Stabilize the count.
|
||||||
// Without this adjustment, count can be unstable like 0, 2, 0, 2, ...
|
// Without this adjustment, count can be unstable like 0, 2, 0, 2, ...
|
||||||
if count == 0 && (int64(time.Second)/tps/2) < diff {
|
if count == 0 && (int64(time.Second)/tps/2) < diff {
|
||||||
count = 1
|
count = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user