From 1ea6bb2b6a3305e038d832d39fc3fe470671dd2d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 6 Aug 2017 00:23:31 +0900 Subject: [PATCH] clock: Fix comments --- internal/clock/clock.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/clock/clock.go b/internal/clock/clock.go index 4307c6cbd..ebe5de6bd 100644 --- a/internal/clock/clock.go +++ b/internal/clock/clock.go @@ -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))