From 7ab96a28cb50ad6e993d4c6b5216c6ceeea83a55 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 28 Dec 2014 15:46:40 +0900 Subject: [PATCH] Update comments --- run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.go b/run.go index 767fe2d5b..55399d5c0 100644 --- a/run.go +++ b/run.go @@ -23,6 +23,10 @@ import ( // The argument (*Image) is the render target that represents the screen. // // This function must be called from the main thread. +// +// The given function f is expected to be called 60 times a second, +// but this is not strictly guaranteed. +// If you need to care about time, you need to check the current time in f. func Run(f func(*Image) error, width, height, scale int, title string) error { err := startUI(width, height, scale, title) if err != nil {