xyzz / openmw-android

OpenMW for Android
https://omw.xyz.is/
GNU General Public License v3.0
325 stars 87 forks source link

Long loading time on Android 11 #59

Closed j13u11fr09 closed 3 years ago

j13u11fr09 commented 3 years ago

Describe the bug When you hit the "play" button in the bottom right of the launcher app, it takes about a minute and a half to start the game. At first I thought the app had frozen, but after waiting a long time the game does start.

Loading and saving also seem to take longer under Android 11 so I'm thinking this may have something to do with how storage is handled under Android 11.

This also happens with the stable version of OpenMW.

To Reproduce Steps to reproduce the behavior:

  1. Open the OpenMW launcher app
  2. Click on the play button.
  3. Wait... About a minute and a half for the game to launch

Expected behavior On an older phone running Android 10 (Pixel XL) the game loads almost instantly. No wait.

Screenshots Not applicable

Smartphone (please complete the following information):

licaon-kter commented 3 years ago

Same setup? Mods? Distant land?

j13u11fr09 commented 3 years ago

Same setup as under Android 10, yup. I've tried disabling all mods and deleting my settings.cfg file: no change.

xyzz commented 3 years ago

It's getting stuck in VFS::FileSystemArchive::listResources, the reason is new google's file access framework (that is automatically used for file access under /sdcard) is incredibly slow, as described in https://www.reddit.com/r/androiddev/comments/kpn68k/android_11_very_slow_file_access_performance/. Not sure there's anything I can do about it, one thing you can try is packing loose files into a .bsa.

j13u11fr09 commented 3 years ago

Ok, thanks for looking into it, I kind of figured this might be beyond your control. I haven't had a chance to time it yet, but it did seem to speed up after the last Android update.

Thanks again!