From b7cd990bc37481665aae30855240c0bdf37e1205 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 26 Nov 2021 02:17:04 +0900 Subject: [PATCH] ebiten: Make it explicit about the goroutine for Game functions --- run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.go b/run.go index eee847fb4..596e7ff7b 100644 --- a/run.go +++ b/run.go @@ -135,6 +135,8 @@ func (i *imageDumperGame) Layout(outsideWidth, outsideHeight int) (screenWidth, // game's Draw function is called every frame to draw the screen. // game's Layout function is called when necessary, and you can specify the logical screen size by the function. // +// game's functions are called on the same goroutine. +// // On browsers, it is strongly recommended to use iframe if you embed an Ebiten application in your website. // // RunGame must be called on the main thread.