jotego / jtcores

FPGA cores compatible with multiple arcade game machines and KiCAD schematics of arcade games. Working on MiSTer FPGA/Analogue Pocket
https://patreon.com/jotego
GNU General Public License v3.0
226 stars 40 forks source link

jtbtiger is setting a wrong video mode #789

Closed ojaksch closed 2 weeks ago

ojaksch commented 2 weeks ago

Before this JTFriday's update Black Tiger was working fine. After the update jtbtiger tries to set a different/impossible video settings. My simple HDMI TV is showing a "mode not supported", a friend's display is saying "120Hz not supported".

jotego commented 2 weeks ago

I assume that you are using a MiSTer. I have checked the latest version of the core in several devices and I cannot reproduce your problem. Please verify your setup or try a fresh install.

ojaksch commented 2 weeks ago

Forgot to mention that we're using a MiSTer. I've just re-tested the core:

Very strange...

jotego commented 2 weeks ago

The new version uses the latest MiSTer framework. You may need to update the MiSTer firmware.

ojaksch commented 2 weeks ago

Just checked to be sure by 200% but my setup is (still) up to date, and I'm sure that my friend's too. Edit: I'll open a thread at misterfpga forum to ask if anyone else is having a problem like this with jtbtiger...

jotego commented 2 weeks ago

I don't know then. Please try asking in Discord or user forums.

By the way, if btiger fails for you, I would expect pretty much all CAPCOM compatible cores to fail as they share the same timings.

ojaksch commented 2 weeks ago

Thanks for that hint. Tested some of your CPS1 and CPS2 cores, but they're working fine. As edited above I'll ask at misterfpga forum. Black Tiger is out of sync

ojaksch commented 2 weeks ago

Progress! Connected my Dell SE2722H, which is a MultiSync like HDMI monitor, and it displays the current jtbtiger - at 80Hz display refresh rate! The older core is running at 60Hz.

paulb-nl commented 2 weeks ago

For some reason the MiSTer Main is not able to set the HDMI PLL with this core. The HDMI clock will always stay at 148.5Mhz.

The resulting framerate is depending on your chosen output resolution. 720p will result in 120Hz. 1080p is 60Hz.

Only vsync_adjust 0 or 1 are affected. vsync_adjust=2 is not affected.

This is probably caused by some timing violation since it happens with this core only.

ojaksch commented 2 weeks ago

video_mode doesn't matter for me, neither 0 or 4 (my setting) changed anything except the resolution. It was vsync_adjust indeed. It defaults to 0 and if I set this to 2 the current Black Tiger is working at 60Hz. Weird, but that shouldn't actually be the case imho.

jotego commented 2 weeks ago

This should be fixed in 4972fbc1581093e745d215aae7f857f75dcd3920. I will upload the files later today. Please re-open the ticket if you see it happening again.

ojaksch commented 1 week ago

Can confirm that it's fixed now and works as with the older versions. Thanks for listening and fixing. My money at work :heart: