Mednafen-PSX-0928 core issues

Ye, sadly we have to do it a bit hacky since the core reports very different resolutions. Guess there is no other way than carefully testing and make special cases.

I tried to find a good list of all resolutions but it doesn’t seem to be something you easily come across. There are some more resolutions listed in these two threads, but I don’t know how accurate the information is and what exact games use all of them:

http://www.mobygames.com/forums/dga,2/dgb,6/dgm,159387/ http://ffhacktics.com/smf/index.php?topic=8217.0

EDIT: Now I can’t use my gamepad in PS1 games in Windows for some reason… It works with other cores.

EDIT2: It seems that input is just broken in some games and not others… Weird.

If it helps, I’ve found pSX reports resolutions quite accurately, except for the fact that it reports games with a 224 line vertical resolution as being 240 lines.

As an aside, the whole business with 224/240 lines is weird, because some games look like they only use 224 lines due to having black bars on the top and bottom, but in reality those black bars are hard-coded and don’t go away no matter what, whereas other games only have them due to keeping a 4:3 aspect ratio. One such curious case is FFVII, which actually uses three resolution modes: 320x224 in the overworld, 320x240 in battles and field maps, and 364x240 in menus. If you use an emulator that allows you to stretch the image to fill the window, you’ll see that black bars remain in field maps, menus, and battles, whereas in the overworld there will be none, but setting it to keep the aspect ratio will add black bars to the overworld screen while the battles and field maps remain unchanged. That is how I know it’s using a 224-line mode in the overworld, and 240 lines with programmed black bars elsewhere. The menus with their 364x240 mode are troublesome, however, because squishing it down to a 4:3 ratio results in uneven scaling, most visible on the fonts. Using a CRT shader helps with this, I find.

So yeah, PS1 can be a bit tricky. FFVII is but one example of a game that switches resolutions, causing issues with emulation. SOTN is another, as is Silent Hill and Chrono Cross.

Also, here’s a list of games at the top of my head that I know run at the PS1’s stated resolutions:

256x240 - FFT and SOTN during gameplay, DQ7 320x224 - FFVII in the overworld, FFVIII, FFIX, Chrono Cross and Silent Hill during gameplay 320x240 - FFVII in field maps and battles, Mega Man X4 364x240 - Tekken 3, FFVII in menus 512x240 - Crash series, Spyro series 640x480 - Silent Hill menus, Chrono Cross menus

I guess 224 height will get padding to 240. I think Mednafen does this already anyways. The 364x240 case for FF VII is unfortunate. Perfect integer scaling is basically impossible unless you’re going to change the display size all the time, which isn’t correct either. Good thing for me that I’m not a pixel purist :wink:

Some games don’t work if you have dualanalog enabled. Sadly, there is no way to autodetect it.

Dualanalog is not enabled. Also, even if it was, both Tales of Phantasia and Breath of Fire IV support analog, and yet input doesn’t work in Tales of Phantasia while it works in Breath of Fire IV.

Verified against plain Mednafen?

I did just now. No input issues in plain mednafen that I could see.

There were only ever two vertical height resolutions on PSX - anything else would just be letterboxing.

If you want ‘pixel purity’ - go hook up the PS1 to a CRT TV - anything else is just pissing in the wind and it’s best we don’t waste valuable time on such trivial stuff when we could be doing better stuff with our time.

That’s all IMHO of course. Like maister I am not a ‘pixel purist’ so it doesn’t really bother me or matter to me.

The only image-related issue that I personally brought up here was the strange pixel distortion that happens for example in the BIOS screen, and that doesn’t happen afaik even if you’re playing your PS1 on an LCD TV.

I think you might be referring to the ‘interlacing’ you’re seeing - the BIOS screen used interlaced high resolutions.

If that is the case, then there really isn’t anything wrong with the aspect ratio or the framebuffer sizes.

This:

The images are unscaled. I marked the weird areas with red boxes. It doesn’t look like an interlacing issue to me, but I can’t say for sure. I don’t even know why this happens. Anyway, this happens on plain mednafen too (actually the screenshots are from mednafen since RetroArch now skips the BIOS), so it’s probably more appropriate to bug Ryphecha about it.

If it happens on real Mednafen as well then it’s probably unwise for us to start adding hacks for that particular screen mode - and you should indeed take it upstream.

I believe those are related to interlacing. It looks fine for me with an interlacing-detecting CRT shader.

Now guess which two are from a PS1 and which two are from Mednafen. ;b

o_O… Well, OK. I just connected my PS1 again and I don’t see any of that. Is it region specific? I have a PAL console. I also saw that your second snapshot (with the PS logo) looks fine, while the same snapshot from me looks distorted. Perhaps this is because the BIOS I emulated was Japanese while yours is American. Anyway, do you know why it happens? Is it an interlacing issue, or just bad use of graphics on Sony’s part?