Recently I've been lucky enough to aquire a 5k 27" monitor, and finding two alternate problems when running Hatari on in:
1) In "Keep desktop resolution in fullscreen" mode the ST screen is in right ration/size, but I get a lot of slowdown. I guess SDL is at some point trying to copy 5120x2880 each frame.
2) If I disable "Keep desktop resolution in fullscreen" mode SDL picks a 640x480 screen mode, which is the wrong aspect ratio for the monitor and is not full screen using the monitors scaler. It is fast though.
Is there any existing set of options I could tweak to do something like either:
a) "force full screen resultion to specific res? I could then pass in the mode I want fullscreen to use, e.g. 1280x720 or 2560x1440.
b) "Disable desktop resultion in full screen but keep desktop aspect ratio": With zoom enabled Hatari requests 640x400 from SDL, at the moment SDL picks 640x480, but ideally would picks first resolution satisfying that size at 16:9, which I think would be 1280x720, if that is not available then does 1920x1080 and so on.
If a or b not already possible any clues on what would need to change in screen.c to add similar logic? Maybe there is an SDL hint for aspect ratio? I'm running on Ubuntu and can build from the git sources if that helps ( but I assume this isn't Linux specific ).
I can of course manually change my desktop resolution down to 1280x720 before launching Hatari in "Keep desktop resolution in fullscreen" mode, but that's quite a fiddlyt be a workaround - would like to make Hatari "do the right thing" when I launch it on the normal 5k desktop and then press F11.