clock: Fix comments

This commit is contained in:
Hajime Hoshi 2017-08-06 00:23:31 +09:00
parent b7d559fdf3
commit 1ea6bb2b6a

View File

@ -55,7 +55,8 @@ func Frames(timeDuration time.Duration, fps int) (int, bool) {
// As tick can be updated discountinuously, use system clock supplementarily.
if int64(timeDuration) > 5*int64(time.Second)/int64(fps) {
// The previous time is too old. Let's assume that the window was unfocused.
// The previous time is too old.
// Let's force to sync the logical frame with the OS clock (or tick).
return 0, true
}
count = int(int64(timeDuration) * int64(fps) / int64(time.Second))