OnionUI / Onion

OS overhaul for Miyoo Mini and Mini+
https://onionui.github.io
GNU General Public License v3.0
3.16k stars 190 forks source link

Delayed application of overlays when RetroAchievements enabled #1516

Open bmn001 opened 3 months ago

bmn001 commented 3 months ago

Checklist

Onions OS Version

4.3.0

Miyoo Firmware Version

202306282128

Provide a clear and concise description of the issue

I've been using overlays for a few systems. For this example, I've been using this great one for Game Boy: https://www.reddit.com/r/MiyooMini/comments/18e2o0z/i_remastered_my_game_boy_dmg_overlay/

When I launch a game with wifi disabled, the overlay is immediately visible and active as expected. No problem.

When I launch a game with wifi enabled and a retroachievements login configured, the overlay is sometimes immediately active. However sometimes it won't turn itself on automatically for several seconds. In other words, the game will run without any overlay for a while, and then it'll just turn itself on a little while later.

A few seconds (<10) seems to be the norm, but once it took almost a full minute.

Steps to Reproduce

You may not experience it right away. It may take a few launches in various wifi environments to occur.

Provide any additional context or information that may help us investigate your issue

It's almost like the system first runs the rom, then tries to confirm that it has wifi and/or a connection to the RetroAchievements servers (or times out), and only then will it apply the overlay.

I don't know if this is a general wifi stack issue or an internal Retroarch issue. This has never happened to me on any other hardware platform when using Retroarch (Raspberry Pi, Ubuntu, Windows) so figured it was worth a bug report here.

bmn001 commented 3 months ago

After extensive testing I can say that this behavior only occurs when Retroarch has achievements enabled.

Disabling achievements causes overlays to appear correctly, immediately, every single time.

I've updated the title of the bug to reflect this.

XK9274 commented 3 months ago

Thanks, have you checked if this bug is present in the stock version of RA that miyoo ships, or whether similar bug reports exist on the RA repo?

bmn001 commented 3 months ago

I went back to the stock Miyoo OS to give that a test, and the version of Retroarch they included doesn't include support for Achievements at all. Achievements were an Onion addition.

I spent some time searching through the Retroarch issue list for any similar bug reports (including closed bugs) and saw none. Doesn't mean I missed one though - Retroarch currently has 2593 open issues! :woozy_face: So far the MM+ is the only Retroarch platform where I've experienced this achievement/overlay delay.