ramapcsx2 / gbs-control

GNU General Public License v3.0
788 stars 110 forks source link

Matched presets switches automatically from from PAL to NTSC, but not back again to PAL. #278

Open GrumpyModeler opened 2 years ago

GrumpyModeler commented 2 years ago

My Amiga 500+ is a PAL machine and when I start up it's in PAL mode. It can output PAL or NTSC and being an ECS machine can output higher resolutions, but that's not applicable for games.

Some games run in NTSC and when I start them GBS Control switches from 1280x1024 to 1280x960 as it should with "Matched presets" and all is well. However, when I exit the game and go back to the PAL Workbench it doesn't switch back to 1280x1024 resolution. I have to log in to the UI and change manually or turn off and on the GBS for it to switch back. I'm using the latest version of GBSControl. I do not have force pal to 60 Hz enabled.

GrumpyModeler commented 2 years ago

Here's after booting up. The info screen doesn't say the resolution because it's what it prefers, 1280x1024, which is normal: GBSControl04 GBSControl05

GrumpyModeler commented 2 years ago

Here it has correctly automatically switched to 1280x960 60 Hz because it received NTSC 60 Hz from the Amiga: GBSControl06

GrumpyModeler commented 2 years ago

And here's the problem. When I exited the game and went back to Workbench it doesn't switch back to 1280x1024 or even 50 Hz even though the Amiga is outputting PAL: GBSControl07

If I turn off and on the GBS again then it correctly senses that it's receiving PAL 50 Hz and outputs 1280x1024 50 Hz again

ramapcsx2 commented 2 years ago

Okay, the problem must be that the Amiga does the mode switch (somehow) so seamlessly that the ASIC doesn't report a sync drop. Without that report, the firmware doesn't realize that the format changed. This shouldn't really be possible but apparently it is. I'm not sure how to best deal with it :/

GrumpyModeler commented 2 years ago

Ok. It does change back to the right preset if I turn off and on power to the Amiga so that sounds right.

A GPIO button that forces switching between presets would make it easy to change back manually.

GrumpyModeler commented 2 years ago

I made a new cable which uses RGB+Csync instead of RGBHV and now it switches between PAL and NTSC correctly.

ramapcsx2 commented 2 years ago

Oh, that's right. Format detection works much better over CSync.

GrumpyModeler commented 2 years ago

I'm designing a video adaptor for the Amiga 2000 so the GBS with GBSControl can be installed inside the computer case. I only had RGBHV on the first one but will add a jumper for RGBHV/RGBS selection now.

Here's the first version prototype: A2000-Videocard10

Here's my new CNC-milled test board with jumpers for selecting sync. I'm gonna test the new version this weekend: A2000-Videocard12