RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

RetroArch doesn't seem to update the aspect ratio after it's been changed by a core

Open micechal opened this issue 12 years ago • 5 comments

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 :)

micechal avatar Feb 02 '14 20:02 micechal

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.

Royerson avatar Feb 18 '14 18:02 Royerson

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).

Themaister avatar Feb 18 '14 19:02 Themaister

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?

inactive123 avatar Feb 18 '14 22:02 inactive123

Ye, I'll add it when I have time.

Themaister avatar Feb 18 '14 22:02 Themaister

Added it. Please don't misuse the feature and spam SET_SYSTEM_AV_INFO. It's a heavy operation.

Themaister avatar Feb 20 '14 22:02 Themaister