fgsfdsfgs / sm64-port

PS2, PS3, OG Xbox and DOS ports of sm64-port.
https://discord.gg/7bcNTPK
249 stars 39 forks source link

[PS2] Experimenting with native 720p support - is it possible? #82

Open metchebe opened 1 year ago

metchebe commented 1 year ago

Hello all.

Having figured out today how to build the PS2 port with the latest SDK, I built native 480p and 720p versions of the executable by changing the following line 112 in gfx_ps2_wapi.c:

#if defined(VERSION_EU)
    vid_mode = &vid_modes[2]; // PAL
#else
    vid_mode = &vid_modes[4]; // 720p
#endif

So the 480p version seems to work OK, but the 720p version has graphical glitches. HOWEVER, the rendering that can be seen between the glitches seems OK (see image), and apparently runs at fullspeed too...

IMG_20230316_114917171

So I wonder if a fix for native 720p rendering is possible, it seems like the hardware could do it... maybe I missed a step?

Regards.

fgsfdsfgs commented 1 year ago

You would probably need to handle interlacing or something. I remember looking into this and not coming up with any solutions. Now I don't really remember much about it.

metchebe commented 1 year ago

OK thanks for the reply. For what it's worth, I can say my 480p build (with vid_modes[1]) works great having tested it for about an hour, so it being noninterlaced is not an issue here.

720p support seems close, maybe someone (fjtrujy?) could comment if this is in fact true or if the fixes are more complex.

lucaspontoexe commented 1 year ago

I remember trying to achieve the same thing. I encountered the same glitches after some minutes of gameplay. Too bad my PS2 broke