Originally Posted by biohazard55
This might explain why we get these massive borders:
Another thought just occurred: since based on the video settings toggled in PARAM.SFO, the PS3 decides which resolution it wants to pick (it chooses the highest resolution your monitor can support based on the settings in PARAM.SFO), then it would also appear to me that it chooses the highest aspect ratio as well (16:9 instead of 4:3). So try to untick 16:9, save the PARAM.SFO, then recompile the whole thing and perhaps it might do something about the massive black borders - it might not be fullscreen still, but at the very least the borders might be less big.
I'm going to test this now.
EDIT: Just tried it - unticked all video resolutions except for 480p 4:3 - and the funny thing is, my PS3 actually prevents me from starting up the program.
It gives me this error: You cannot play this game at the current video output setting. (80028F10).
So it seems to insist on you feeding it a resolution at a 16:9 aspect ratio - it does not want to output at 480p 4:3.
My PS3 Display Settings are set up this way - Video Output Settings - Current Output Resolution: 1080p.
After 'Select A Setting method', when I choose Manual, it only gives me the option to either tick 720p, 1080i or 1080p - 576p is grayed out.
CONCLUSION: So yeah, it seems to insist on a 480p 16:9 resolution at the very least - 480p (4:3) it won't even start up with - perhaps someone who has connected it to a regular SD TV wants to test this.
This might explain the black borders - so Snes9x indeed tries to output it to the whole screen, but seeing as our aspect ratio is 16:9 and we have no way of manually setting this, we get the black borders.
The only thing in terms of resolution that it does permit us to manually set in the code appears to be the refresh rate though - because there is a massive difference in performance ever since I set it manually to 59.94Hz.
So, the thing is, apparently we can't set 480p at 4:3 aspect ratio - and only 480p and 576p have a 4:3 aspect ratio - anything above that only supports 16:9 aspect ratio. So SNES9x might be trying its best to output a true 4:3 aspect ratio picture, but the problem is that all of the video modes we have been up until now are all 16:9 - it does not even matter what value you give to the VideoState inside the code - based upon the display flags set in PARAM.SFO, the PS3 will decide which resolution is most optimal and at which aspect ratio - the only thing so far that I have been able to change has been the refresh rate.
We need to find a way not to let the flags in PARAM.SFO dictate at what resolution we can set it.
Originally Posted by cmonkey69
Great contribution! I tried something similar and it did not seem to work, but I wasn't exactly sure where to put it - so I was wondering whether the routine itself just did not work on the input I fed it or whether it was due to the placement of the sorting call. Then I just moved onto other things.
I haven't tried the latest build, but the last time I checked the file listings were still unsorted - perhaps put this little snippet in there so that Compgenie can implement this in his emulator - he seems to have not released the source so far, so you can't exactly contribute to it as easily as you can with SNES9x.