Page 1 of 3

Change core clock from 59.18 hz to 60 hz

Posted: Sun Oct 25, 2020 2:25 pm
by joseupp
Hello
I want to change the clock of the neo geo system from the current 59.18 hz to 60 hz, I have downloaded quartus and the files to compile the core but I do not know what parameter the clock changes.

The problem I have is that the tv where it is connected mister is not able to synchronize with the pixel clock of neo geo and you get a scroll stutter every x seconds, and I tried all the vsync options and it is the same in all.

If someone is so kind to indicate me and apologize for my English, thanks in advance.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Mon Oct 26, 2020 12:31 pm
by paulbnl
At Project Navigator at top left select IP Components.
Right click Entity "pll" -> Edit in parameter editor.

There you see Desired Frequency 96.0 & 48.0 Mhz. For 60Hz you need 60/59.18 x 96Mhz = 97.330180 and 48.665090. Enter those both at Desired Frequency and then make sure Actual Frequency matches exactly. Finally click Finish.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Mon Oct 26, 2020 1:11 pm
by retrorepair
Just to add to this, I'm not sure it will help you. 59.18 isn't an unusual frequency for 15khz capable displays so I'd be more inclined to believe you have other issues.

Do any other cores work on this display? What is it?

Re: Change core clock from 59.18 hz to 60 hz

Posted: Mon Oct 26, 2020 7:39 pm
by joseupp
paulbnl wrote: Mon Oct 26, 2020 12:31 pm At Project Navigator at top left select IP Components.
Right click Entity "pll" -> Edit in parameter editor.

There you see Desired Frequency 96.0 & 48.0 Mhz. For 60Hz you need 60/59.18 x 96Mhz = 97.330180 and 48.665090. Enter those both at Desired Frequency and then make sure Actual Frequency matches exactly. Finally click Finish.
Thank you very much, it works perfect, now I have smooth scrolling without stuttering. Again, thank you very much

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Dec 05, 2020 1:53 pm
by Insert Disk Two
Can you please share the compiled core? I also have the same stuttering problem on my TV. Thanks!

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Dec 05, 2020 2:27 pm
by joseupp
Insert Disk Two wrote: Sat Dec 05, 2020 1:53 pm Can you please share the compiled core? I also have the same stuttering problem on my TV. Thanks!
Hi

https://mega.nz/file/BFJUXRIS#ANTV25gld ... zLK3heeaZs

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Dec 05, 2020 2:57 pm
by Insert Disk Two
That's awesome, thank you so much!

Do you plan to keep it updated in the future?

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Dec 05, 2020 3:45 pm
by joseupp
Insert Disk Two wrote: Sat Dec 05, 2020 2:57 pm That's awesome, thank you so much!

Do you plan to keep it updated in the future?
Yes

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Dec 05, 2020 6:41 pm
by Insert Disk Two
Great :)

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Jan 14, 2021 8:17 pm
by Insert Disk Two
Neogeo core got updated today. Anyone got a 60hz corrected version of it please? Thanks.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Fri Jan 15, 2021 7:43 pm
by joseupp
Insert Disk Two wrote: Thu Jan 14, 2021 8:17 pm Neogeo core got updated today. Anyone got a 60hz corrected version of it please? Thanks.
Update 60hz
https://mega.nz/file/JIp0yQoZ#VvSgmo_Q2 ... eAaAV6RLWw

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Jan 16, 2021 11:20 am
by MostroW
Maybe ask the developer to make it an switchable option in the MiSTer OSD?

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Jan 16, 2021 6:46 pm
by Insert Disk Two
Updates on Neogeo are done by Sorgelig himself and he does not want to include this option.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sun Jan 17, 2021 11:31 am
by MostroW
Ahhh ok, if he doesn't want to include that change i'd say there must be a perfectly good reason for that?
Then it's left to people themselves to recompile their custom core i guess.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sun Jan 17, 2021 9:11 pm
by Insert Disk Two
Well when I asked him if he could implement it I was told "to buy a good TV" :)

Unfortunately it doesn't really have to do with a TV being good or not. So at least they are people out there who are doing it themselves. Pity this has to be done manually with every release

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Feb 04, 2021 11:11 am
by Insert Disk Two
Any chance this can be patched for 60hz. This is a custom core with cropping.

http://temlib.org/pub/mister/crop/

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Feb 11, 2021 10:42 am
by Insert Disk Two
Official NeoGeo core with 1080p crop is out. Looking forward for a 60hz patched version :mrgreen:

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sat Feb 13, 2021 12:12 am
by joseupp
Insert Disk Two wrote: Thu Feb 11, 2021 10:42 am Official NeoGeo core with 1080p crop is out. Looking forward for a 60hz patched version :mrgreen:
Update 60hz
https://mega.nz/file/wRwEgAxC#c99a8LP5Z ... NR0eWhs-Ug

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Feb 18, 2021 6:33 am
by Insert Disk Two
Thanks for the awesome work, I do hope that at one point Sorgelig implements the option within the official core.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Sun Feb 21, 2021 10:28 pm
by uberyoji
I wish this option was included as well. 60hz fixes my wavy picture.
Also I wonder why Sorgelig says to buy a good tv. I have a Sony KV32FV310, I don't think it is bad lol.
There is an option like this on the cave core and it works great.
Thanks for the update joseupp.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Mon Feb 22, 2021 6:34 pm
by Insert Disk Two
Meanwhile there is another Neo Geo official core update :/ This cat and mouse game will never end

Re: Change core clock from 59.18 hz to 60 hz

Posted: Mon Feb 22, 2021 7:54 pm
by uberyoji
Maybe joseupp will update us again.

Now if only jotego would add the option with the cps system. I see from his jtbin github that he is aware of the 60hz issue. Even had a twitter poll about it.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Mon Feb 22, 2021 9:12 pm
by Insert Disk Two
Yes, I have talked to him about 60hz and he decided to do a poll about it :)

Re: Change core clock from 59.18 hz to 60 hz

Posted: Tue Feb 23, 2021 8:57 pm
by glenfiay
I haven't had any issue on PVM and BVM but I know some CRT such as Barco CRTs have synch issues with Neogeo MiSTer or legit Neogeo hardware

Re: Change core clock from 59.18 hz to 60 hz

Posted: Tue Feb 23, 2021 11:15 pm
by uberyoji
joseupp wrote: Sat Feb 13, 2021 12:12 am
Insert Disk Two wrote: Thu Feb 11, 2021 10:42 am Official NeoGeo core with 1080p crop is out. Looking forward for a 60hz patched version :mrgreen:
Update 60hz
https://mega.nz/file/wRwEgAxC#c99a8LP5Z ... NR0eWhs-Ug
joseupp, do you think you could update us? Otherwise I might try to setup myself and provide an update on a regular basis.
If anyone has pointers to get me running up fast, please let me know. I will start by looking at the official GitHub page.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Wed Feb 24, 2021 4:54 pm
by uberyoji
I can now build the core.

Once I confirm it works, I will update this thread with a new version when there is an update on the original core. I might do it thru a github branch in the future. For the time being, mega will suffice for storage I guess.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Feb 25, 2021 2:13 am
by uberyoji
Its been a long a difficult journey but I was finally was able to make it happen. Enjoy.
https://mega.nz/folder/xlUVEIzB#vKdNV8vkMuQixxPgItnV2w

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Apr 01, 2021 8:50 pm
by dataDave
uberyoji wrote: Thu Feb 25, 2021 2:13 am Its been a long a difficult journey but I was finally was able to make it happen. Enjoy.
https://mega.nz/folder/xlUVEIzB#vKdNV8vkMuQixxPgItnV2w
Thank you so, so, much for this. Also to all the others that have contributed to this thread.

Outside of my main retro gaming PVM I have an ASUS ROG Swift PG279Q, an Iiyama RedEagle G-Master, and downstairs a Samsung JU7500. The NeoGeo core simply flat-out refuses to lock sync on any of them. I get nothing but a series of flickers followed by a black screen unless I want to forfeit vsync_adjust=2 (no thanks). The only solution up until now was to run the MiSTer through my old Elgato Game Capture HD and activate its software through my computer which would bridge some form of pass-through or sync handshake to my various displays. Hardly ideal.

These revised cores have fixed all of this. Thank you again, honestly. I don't like to power my PVM up unless I'm going to be playing for extended durations, so this has enabled quick-fix bouts of Neo gaming through my LCDs. To me, at least, this is a big deal. If I didn't have the PVM I wouldn't have been able to play at all.

How difficult is the process? It's something I'd like to learn how to do myself and maybe assist with. :)

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Apr 01, 2021 10:06 pm
by uberyoji
Not too complicated honestly if you have a little xp in software devs. It is basically those steps high level:
1) install Quartus lite v17.0 (once)
2) Install git (once)
3) Get/update source code from repo
4) Modify Entity pll from 96 to 97.330180 and 48 to 48.665090
5) Compile core
6) Profit

I plan to maintain the 60hz fork forever so no worries, I will always update this thread each time there is a version in a timely fashion now that my setup is done. I put some notifications on the repo to alert myself when the master is updated.

Re: Change core clock from 59.18 hz to 60 hz

Posted: Thu Apr 01, 2021 10:18 pm
by zakk4223
Is this an issue where an incompatible pixel clock is being calculated for some displays? I wonder if changing the video mode would help a bit.
A real example. I run vsync_adjust=2 unless forced to otherwise. I had a global video_mode set to 1920x1080@60hz (one of the standard modes available).

The arcade scramble core WOULD NOT sync to my freesync monitor unless I used vsync_adjust=0. I brought it up in the bug tracker and Sorg said that sometimes the calculated pixel clock isn't compatible, so maybe try the PAL (50hz) mode. That works, and since I am using vsync_adjust=2, the vertical refresh matches the core like it should.

If you're using vsync_adjust=2 try another video mode and see what happens.

Issue for reference: https://github.com/MiSTer-devel/Arcade- ... /issues/25