Skip to content
Discussion options

You must be logged in to vote

The flicker is caused by the activity being resized when the IME changes the window insets.
When the view is resized Ebiten recreates the native surface, which shows the old frame for a couple of V‑syncs and produces the “repeated‑pattern” artifact you see.

The simplest way to avoid that is to tell Android not to resize the window when the keyboard appears. Add (or change) the windowSoftInputMode flag in your AndroidManifest.xml:

<activity
 android:name=".MainActivity"
 android:label="@string/app_name"
 android:exported="true"
 android:windowSoftInputMode="stateHidden|adjustPan">
 <!-- … -->
</activity>

adjustPan keeps the window size constant and just pans the content, so Ebiten’s surfac…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tinne26
Comment options

Comment options

You must be logged in to vote
1 reply
@tinne26
Comment options

Answer selected by tinne26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants