From c65424230135d655c8d4ed9af20bc090e4a662b3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 5 Nov 2023 00:19:35 +0900 Subject: [PATCH] ebiten: update documentations for the single thread mode --- doc.go | 2 +- run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index a7d58d567..aebd8ad2f 100644 --- a/doc.go +++ b/doc.go @@ -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). diff --git a/run.go b/run.go index 48a8e821a..7427ecda5 100644 --- a/run.go +++ b/run.go @@ -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.