Update comments

This commit is contained in:
Hajime Hoshi 2014-12-28 15:46:40 +09:00
parent b2055e3719
commit 7ab96a28cb

4
run.go
View File

@ -23,6 +23,10 @@ import (
// The argument (*Image) is the render target that represents the screen. // The argument (*Image) is the render target that represents the screen.
// //
// This function must be called from the main thread. // 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 { func Run(f func(*Image) error, width, height, scale int, title string) error {
err := startUI(width, height, scale, title) err := startUI(width, height, scale, title)
if err != nil { if err != nil {