Skip to content

Commit

Permalink
clock: Update a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Oct 17, 2020
1 parent 974ec52 commit e7a3d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/clock/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7a3d29

Please sign in to comment.