Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some cores not syncing when using 15kHz Direct Video #615

Closed
ArchiveRL opened this issue May 22, 2022 · 9 comments
Closed

Some cores not syncing when using 15kHz Direct Video #615

ArchiveRL opened this issue May 22, 2022 · 9 comments

Comments

@ArchiveRL
Copy link

This is an issue I've had for nearly 2 years, but I was never quite sure what might be the cause. Basically, when connecting my MiSter to a 15 kHz CRT TV or a PVM, a few cores refuses to sync, namely:

Atari ST
Amstrad PCW
Tatung Einstein
Coco 3

These cores display ok natively on 15kHz via IO board.
I think I've also seen this happening in some console games, where resolution is changed within a game, but I can't confirm that 100%.
There are also out of sync problems when using custom modelines, which otherwise work using the IO board. Eg ao486, PC-88, x68000.

Possible causes I've considered:

  1. cables - I've initially though it might be down to my cable lacking the 470 Ohm resistor ( I was using the MiST cable), but since then I've tested it also with a common VGA - BNC cable for PVM, a proper MiSTer cable from an official seller, and a new AG6200 based all-in-one cable prototype. Same results.
  2. CRT sets - I've tested this on 4 different Trinitrons, couple of Philips TVs and a 15kHz PVM. Same results.
  3. HDMI -VGA adapters - my adapter (called Logilink) is AG6200 based, and I've also tested it on the aforementioned all-in-one cable. I've also heard similar things from users. But, I've also heard that these cores (or at least Atari ST) do work for other Direct Video users (though these reports weren't 100% confirmed). Therefore different adapter design could be a factor here.

Additional factors:
-when adding VGA2SCART adapters into the chain, the problem disappears. As in: MiSTer >> HDMI/VGA adapter >> VGA-VGA cable >> VGA2SCART adapter >> SCART to SCART cable >> SCART CRT TV
Example adapters UMSA, VGA to SCART
Using these also makes the custom modelines work via Direct Video.

-a recent release MiSTer_20220511 has broken Direct Video for most users. It was reported and quickly fixed, but while testing it, I have discovered that it actually made these problematic cores work on Direct Video (I did not do update_all like the others, just dragged the binary manually to my MiSter via SSH. And my DV somehow still worked, though when I tried to run update scripts, image went out of sync).

I realize this is a hard to pinpoint issue, possibly caused by different hardware and/or software factors, but perhaps somebody can see a common denomionator here. The fact that it was resolved (partially) in release 20220511 might mean that it is possible to be solved on the software side.

@paulb-nl
Copy link
Contributor

paulb-nl commented May 22, 2022

I have talked about this here #605 (comment)

Actually these cores that you listed are not tweaked for Directvideo with composite_sync=1 so they don't work.

However it turns out that without pixel repetition enabled the cores work even without tweaking which is what happened with MiSTer 20220517.

With composite sync disabled and a VGA->SCART adapter that does HV sync combining it would already work so if it worked for other people then they had composite_sync=0.

Modelines only work with Directvideo disabled and composite_sync is only supported with Directvideo enabled so you still need a HV sync combiner if you use the HDMI output.

@ArchiveRL
Copy link
Author

ArchiveRL commented May 22, 2022

This is great, thank you. So from what I understand it's possible to be permanently fixed with that "pixel repetition" Menu core change?

Yes, when I was using the VGA2SCART adapter I had to set composite_sync=0. But I was under impression a few times other people referred to using DV just with a MiSTer cable and having the ST core working, which was confusing and threw me off.

I understand that modelines are a different matter and might never work with DV. It's ok, at least we know that an adapter might sort it out.

EDIT: scratch all that, I've just tried the MiSTer_20220517 again, and all these 4 cores work just fine! I would've sworn it wasn't like that when I had tried it a few days ago...but, well, nevermind, massive THANKS to whomever sorted that out. It was one of the oldest and most confusing niggles in the otherwise stellar MiSTer's CRT portfolio.

Now, if we could only sort Archie's CRT problem...

@paulb-nl
Copy link
Contributor

MiSTer_20220517 is the one with the Directvideo bug so those cores should work with that one except for the Menu core. The nightlies after that won't work.

I will post a test build later for you to try.

@ArchiveRL ArchiveRL reopened this May 23, 2022
@ArchiveRL
Copy link
Author

I see...so the 605 got closed in regard to a nightly build...I got confused with the build numbers overall. Also, because in general the DV still works for me, unlike for the other users (apart from when trying to run an update from the OSD menu).

Thanks a lot for looking into it.

@paulb-nl
Copy link
Contributor

Yea that issue was closed too soon.

If the Menu core kept working for you that means that you have the static noise background on the menu. Switching to any other background with F1 on the keyboard or when running a script will enable the scaler & framebuffer and this is what triggered the bug.

Here is a test build of MiSTer main which should work for everything:
MiSTer_DV.zip

@ArchiveRL
Copy link
Author

Can confirm that all is well using this version, at least in regard to these 4 problematic cores and the Menu. They all display fine now using DV.

Many thanks for sorting it out again! I mostly use IO these days but this was botehring me on principle still :)

@ArchiveRL
Copy link
Author

Hi @paulb-nl, any chance to make a pull request on this? Cheers!

@paulb-nl
Copy link
Contributor

Yes three days ago 😉 It is already merged.

357fbb6

@ArchiveRL
Copy link
Author

Drat! Somebody allegedly in the know told me it wasn't, hence the request. Sorry, and thanks again!

I guess it's time for closure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants