ebiten: update documentations for the single thread mode

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

2
doc.go
View File

@ -107,7 +107,7 @@
// This affects performance very much. // This affects performance very much.
// //
// `ebitenginesinglethread` disables Ebitengine's thread safety to unlock maximum performance. If you use this you will have // `ebitenginesinglethread` disables Ebitengine's thread safety to unlock maximum performance. If you use this you will have
// to manage threads yourself. Functions like IsKeyPressed will no longer be concurrent-safe with this build tag. // 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 // 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.
// `ebitenginesinglethread` was deprecated as of v2.7. Use RunGameOptions.SingleThread instead. // `ebitenginesinglethread` was deprecated as of v2.7. Use RunGameOptions.SingleThread instead.

2
run.go
View File

@ -257,7 +257,7 @@ type RunGameOptions struct {
// SingleThread indicates whether the single thread mode is used explicitly or not. // SingleThread indicates whether the single thread mode is used explicitly or not.
// The single thread mode disables Ebitengine's thread safety to unlock maximum performance. // The single thread mode disables Ebitengine's thread safety to unlock maximum performance.
// If you use this you will have to manage threads yourself. // If you use this you will have to manage threads yourself.
// Functions like IsKeyPressed will no longer be concurrent-safe with this build tag. // 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. // 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.