ebiten: update documentations for the single thread mode

This commit is contained in:
Hajime Hoshi 2023-11-05 00:19:35 +09:00
parent 2313373b88
commit c654242301
2 changed files with 2 additions and 2 deletions

2
doc.go
View File

@ -109,7 +109,7 @@
// `ebitenginesinglethread` disables Ebitengine's thread safety to unlock maximum performance. If you use this you will have
// to manage threads yourself. Functions like `SetWindowSize` will no longer be concurrent-safe with this build tag.
// They must be called from the main thread or the same goroutine as the given game's callback functions like Update
// `ebitenginesinglethread` works only with desktops.
// `ebitenginesinglethread` works only with desktops and consoles.
// `ebitenginesinglethread` was deprecated as of v2.7. Use RunGameOptions.SingleThread instead.
//
// `microsoftgdk` is for Microsoft GDK (e.g. Xbox).

2
run.go
View File

@ -260,7 +260,7 @@ type RunGameOptions struct {
// Functions like `SetWindowSize` will no longer be concurrent-safe with this build tag.
// They must be called from the main thread or the same goroutine as the given game's callback functions like Update.
//
// SingleThread works only with desktops.
// SingleThread works only with desktops and consoles.
//
// If SingleThread is false, and if the build tag `ebitenginesinglethread` is specified,
// the single thread mode is used.