Change core clock from 59.18 hz to 60 hz

joseupp
Posts: 6
Joined: Sun Oct 25, 2020 2:07 pm
Been thanked: 2 times

Change core clock from 59.18 hz to 60 hz

Unread post 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.
paulbnl
Core Developer
Posts: 216
Joined: Sun May 24, 2020 8:48 pm
Has thanked: 49 times
Been thanked: 285 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
retrorepair
Posts: 257
Joined: Sun May 24, 2020 9:06 pm
Has thanked: 64 times
Been thanked: 13 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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?
joseupp
Posts: 6
Joined: Sun Oct 25, 2020 2:07 pm
Been thanked: 2 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Can you please share the compiled core? I also have the same stuttering problem on my TV. Thanks!
joseupp
Posts: 6
Joined: Sun Oct 25, 2020 2:07 pm
Been thanked: 2 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

That's awesome, thank you so much!

Do you plan to keep it updated in the future?
joseupp
Posts: 6
Joined: Sun Oct 25, 2020 2:07 pm
Been thanked: 2 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Great :)
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Neogeo core got updated today. Anyone got a 60hz corrected version of it please? Thanks.
joseupp
Posts: 6
Joined: Sun Oct 25, 2020 2:07 pm
Been thanked: 2 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by MostroW »

Maybe ask the developer to make it an switchable option in the MiSTer OSD?
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Updates on Neogeo are done by Sorgelig himself and he does not want to include this option.
MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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/
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Official NeoGeo core with 1080p crop is out. Looking forward for a 60hz patched version :mrgreen:
joseupp
Posts: 6
Joined: Sun Oct 25, 2020 2:07 pm
Been thanked: 2 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Thanks for the awesome work, I do hope that at one point Sorgelig implements the option within the official core.
User avatar
uberyoji
Posts: 48
Joined: Sun May 24, 2020 11:03 pm
Has thanked: 5 times
Been thanked: 20 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Meanwhile there is another Neo Geo official core update :/ This cat and mouse game will never end
User avatar
uberyoji
Posts: 48
Joined: Sun May 24, 2020 11:03 pm
Has thanked: 5 times
Been thanked: 20 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

Yes, I have talked to him about 60hz and he decided to do a poll about it :)
glenfiay
Posts: 6
Joined: Sun May 24, 2020 7:41 pm
Been thanked: 3 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
User avatar
uberyoji
Posts: 48
Joined: Sun May 24, 2020 11:03 pm
Has thanked: 5 times
Been thanked: 20 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
User avatar
uberyoji
Posts: 48
Joined: Sun May 24, 2020 11:03 pm
Has thanked: 5 times
Been thanked: 20 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
User avatar
uberyoji
Posts: 48
Joined: Sun May 24, 2020 11:03 pm
Has thanked: 5 times
Been thanked: 20 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
User avatar
dataDave
Posts: 7
Joined: Thu Mar 11, 2021 9:44 am
Has thanked: 21 times
Been thanked: 4 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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. :)
User avatar
uberyoji
Posts: 48
Joined: Sun May 24, 2020 11:03 pm
Has thanked: 5 times
Been thanked: 20 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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.
zakk4223
Posts: 289
Joined: Sun May 24, 2020 10:55 pm
Been thanked: 120 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post 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
Post Reply