-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[SDL2] [PS2] Framebuffer resolution + 240p/480p + PAL support #13969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This keeps the native screen mode of the console intact. Works fine even with 448px height, as the height seems to be virtual (the image is centered, on a PAL CRT)
This sets the GS resolution to the most recently created window. Should the resolution be 320x240 or below, progressive mode is activated.
Allows for forced NTSC/PAL, as well as forced progressive with any resolution
I'd recommend implementing |
@ccawley2011 You're right, NTSC/PAL could be set from the refresh rate being 60/50 this way. SDL even allows setting the refresh rate to 0 for auto. Though I'm not sure if I can muster implementing it any time soon. Changing the resolution on an existing window may be a challenge too. |
Also, can you please rebase this PR on main? I don't mind two PRs, but changes like this should go into main first. |
@slouken Okay, I'll make that happen over the weekend I hope |
This has been cherry-picked to SDL2 in 7b28fb2 |
I was not aware SDL_atoi and SDL_strcasecmp were available in SDL2. Thank you for merging. |
You're welcome! |
I've been wanting to use the lowres 240p mode on PS2 as I like to do software rendering, and the CPU is somewhat weak. These changes allow for that.
Description
This adds the special hints:
SDL_HINT_PS2_GS_WIDTH
,SDL_HINT_PS2_GS_HEIGHT
,SDL_HINT_PS2_GS_PROGRESSIVE
,SDL_HINT_PS2_GS_MODE
They allow for the framebuffer width and height to be set, progressive to be turned on/off and to decide which regional format to use for the signal (PAL/NTSC). Furthermore, the region is no longer overridden by default, so the console will use its native region, instead of NTSC.
Existing Issue(s)
ps2dev/ps2sdk-ports#183
#13993