RetroArch doesn't seem to update the aspect ratio after it's been changed by a core
Hi.
At first, I've noticed an issue with the Genesis Plus GX core not outputting the right resolution for a SEGA console, which is 320x224, so I've opened a ticket under Genesis Plus GX's project page, which you can see here: https://github.com/ekeeke/Genesis-Plus-GX/issues/24
But as it later turned out, it seems the issue is related to RetroArch itself, since both Picodrive and Genesis Plus GX are affected, so it's not a problem with some specific core.
As you can read in my comment under the issue, setting RetroArch's aspect ratio to 320x224 by hand makes it look properly.That means that all the video data is sent by the core to RetroArch, it's just that RetroArch doesn't seem to update the aspect ratio after it's been changed.
I think that RetroArch lacks of a feature that would enable it to change the displayed resolution on the fly, making the window larger or smaller if needed.
Of course I may be wrong, because I obviously don't understand what's going on there under the hood, so please correct me if that's the case :)
Emulation General is having a conversation about this right now. Glad to see it's already reported.
This is also an issue in Menafen PSX(and presumably any other core I don't know about that changes resolutions), and it completely breaks integer scaling for these cores.
retro_get_system_av_info() is checked once after a game loads. Handling cases where the game changes aspect ratio mid-game is not a trivial case to handle. It would break FFmpeg recording hard, and make window handling far more complex. The interactions with integer scale would be really nasty. A core-driven driver reinit where system_av_info() is rechecked would make it work though if that is acceptable.
Integer scale does look at base_width/base_height to determine how scaling should happen, so it's important that part works correctly. (It cannot check per-frame width/height because it would break SNES hi-res for example).
A core-driven driver reinit where system_av_info() is rechecked would make it work though if that is acceptable.
I'd say we go for that then. This would be in the form of an environ callback that we can invoke from retro_run time?
Ye, I'll add it when I have time.
Added it. Please don't misuse the feature and spam SET_SYSTEM_AV_INFO. It's a heavy operation.