mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-09 20:47:26 +01:00
ebiten: update documentations for the single thread mode
This commit is contained in:
parent
2313373b88
commit
c654242301
2
doc.go
2
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).
|
||||
|
2
run.go
2
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.
|
||||
|
Loading…
Reference in New Issue
Block a user