mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: update documentations for the single thread mode
This commit is contained in:
parent
2db10b1e9c
commit
2313373b88
2
doc.go
2
doc.go
@ -107,7 +107,7 @@
|
||||
// This affects performance very much.
|
||||
//
|
||||
// `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
|
||||
// `ebitenginesinglethread` works only with desktops.
|
||||
// `ebitenginesinglethread` was deprecated as of v2.7. Use RunGameOptions.SingleThread instead.
|
||||
|
2
run.go
2
run.go
@ -257,7 +257,7 @@ type RunGameOptions struct {
|
||||
// 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.
|
||||
// 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.
|
||||
//
|
||||
// SingleThread works only with desktops.
|
||||
|
Loading…
Reference in New Issue
Block a user