ebiten: add a warning about StrictContextRestoration

Updates #3089
This commit is contained in:
Hajime Hoshi 2024-09-10 01:42:46 +09:00
parent e058bb6fd3
commit df821f0177

1
run.go
View File

@ -301,6 +301,7 @@ type RunGameOptions struct {
// StrictContextRestration indicates whether the context lost should be restored strictly by Ebitengine or not.
//
// StrictContextRestration is available only on Android. Otherwise, StrictContextRestration is ignored.
// Thus, StrictContextRestration should be used with mobile.SetGameWithOptions, rather than RunGameWithOptions.
//
// In Android, Ebitengien uses `GLSurfaceView`'s `setPreserveEGLContextOnPause(true)`.
// This works in most cases, but it is still possible that the context is lost in some minor cases.