From df821f01774638bf8cb78f387ad81fb0a4b5adcb Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 10 Sep 2024 01:42:46 +0900 Subject: [PATCH] ebiten: add a warning about StrictContextRestoration Updates #3089 --- run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/run.go b/run.go index b2bb37143..cf53aea7e 100644 --- a/run.go +++ b/run.go @@ -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.