Closed hajimehoshi closed 1 month ago
Note to myself: I'm not sure I should revert https://github.com/hajimehoshi/ebiten/commit/5a36b4bb48205676e37f0332e3e914df13c0d08d. IIUC, this is not needed for Android where you can detect context loss easily. See also a30f075896b76b2f6fb1536c490aead650e4157f
Note to myself: 771e5685f81ea6b1cad60a22423e56a8ae4ef874 is not needed to be reverted for Android.
Note to myself: I found appendRegionRemovingDuplicates
is pretty heavy.
This was introduced at https://github.com/hajimehoshi/ebiten/commit/367606f2748ae383ec87e6fcc9c7bb3636228517 and optimized at https://github.com/hajimehoshi/ebiten/commit/cc247962703eba99eae732876496375191f16cbe, and this is still heavy. I think I'll remove them.
Related
In order to mitigate risk of performance regression, I have to add a feature to switch restoring or not.
Ebitengine Version
v2.8.0-alpha.3
Operating System
Go Version (
go version
)go version go1.22.6 darwin/arm64
What steps will reproduce the problem?
Submit an Android application and see prelaunch reports
What is the expected result?
No error
What happens instead?
There are some errors.
This error sometimes happens in the prelaunch report (google Pixel 5 64-bit only), and also in the real world (Android vitals)
This error happens when resizing a window in an Android desktop emulator (Generic Small Desktop (x86) (virtual))
In order to fix them, I think we should revive
internal/restorable
unfortunately.Anything else you feel useful to add?
internal/restorable
was removed at #805