From b9752ce97c8d863af9445ad4f6cc495663c89f00 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 10 Apr 2016 23:03:50 +0900 Subject: [PATCH] ui: Fix comment --- run.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run.go b/run.go index b6ed5ae37..fafdb5a43 100644 --- a/run.go +++ b/run.go @@ -199,12 +199,11 @@ func Run(f func(*Image) error, width, height, scale int, title string) error { currentRunContext.setRunningSlowly(false) beforeForUpdate = now } else { - // Note that generally t is a little more than 1/60[sec]. + // Note that generally t is a little different from 1/60[sec]. t := now - beforeForUpdate currentRunContext.setRunningSlowly(t*FPS >= int64(time.Second*5/2)) tt := int(t * FPS / int64(time.Second)) - // As t is not accurate 1/60[sec], errors are accumulated - // (generally, errors are positive values). + // As t is not accurate 1/60[sec], errors are accumulated. // To make the FPS stable, set tt 1 if t is a little less than 1/60[sec]. if tt == 0 && (int64(time.Second)/FPS-int64(5*time.Millisecond)) < t { tt = 1