Change core clock from 59.18 hz to 60 hz

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 »

lufeig wrote: Fri Mar 25, 2022 1:15 am Latest 20220212 core patched to 60Hz

https://mega.nz/file/qShQjAjD#5J6MJsUah ... TC_W1AVwgo
Maybe we should start an github fork together and release those thru a custom db. What do you think?
User avatar
lufeig
Posts: 15
Joined: Sat Feb 12, 2022 3:29 am
Location: Brazil
Has thanked: 13 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by lufeig »

I'm sorry but don't have the knowledge nor the discipline for that.

I just modified the source code according to the instructions given on this post and compiled it.

Sharing the compiled patched core is my way to say "thanks" for all the information shared here. ;)

_________________________

EDIT: @uberyoji, if you want, feel free to test and upload to your Mega account the file I shared here. No need for credits, all I did was following instructions.
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 »

Eheh all good lufeig. I'll make it happen now that I know how to make custom mister DBs.
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 »

Done. Now you can use the update_all script to update the custom core. Enjoy!

Add the following to the bottom of /media/fat/downloader.ini on your MiSTer:

Code: Select all

[uberyoji_neogeo_mister_60hz]
db_url = https://raw.githubusercontent.com/uberyoji/NeoGeo_MiSTer_60hz/master/releases/uberyoji_neogeo_mister_60hz.json
If you want to update manually, I will put them in the release folder of the github fork.
https://github.com/uberyoji/NeoGeo_MiSTer_60hz
User avatar
lufeig
Posts: 15
Joined: Sat Feb 12, 2022 3:29 am
Location: Brazil
Has thanked: 13 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by lufeig »

uberyoji wrote: Fri Mar 25, 2022 4:38 am Done. Now you can use the update_all script to update the custom core. Enjoy!

Add the following to the bottom of /media/fat/downloader.ini on your MiSTer:

Code: Select all

[uberyoji_neogeo_mister_60hz]
db_url = https://raw.githubusercontent.com/uberyoji/NeoGeo_MiSTer_60hz/master/releases/uberyoji_neogeo_mister_60hz.json
If you want to update manually, I will put them in the release folder of the github fork.
https://github.com/uberyoji/NeoGeo_MiSTer_60hz
nice initiative, congrats! well done!
User avatar
lufeig
Posts: 15
Joined: Sat Feb 12, 2022 3:29 am
Location: Brazil
Has thanked: 13 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by lufeig »

uberyoji wrote: Fri Mar 25, 2022 4:38 am Done. Now you can use the update_all script to update the custom core. Enjoy!

Add the following to the bottom of /media/fat/downloader.ini on your MiSTer:

Code: Select all

[uberyoji_neogeo_mister_60hz]
db_url = https://raw.githubusercontent.com/uberyoji/NeoGeo_MiSTer_60hz/master/releases/uberyoji_neogeo_mister_60hz.json
If you want to update manually, I will put them in the release folder of the github fork.
https://github.com/uberyoji/NeoGeo_MiSTer_60hz
neo geo core was updated yesterday, march 26th.

this is the updated core with the 60Hz patch. you can upload it to your github release folder if you want to save a couple of minutes instead of compiling it. ;)

https://mega.nz/file/6fwlWLKK#6xHUo_U1v ... Uj1Cgqt3IA
User avatar
emmadness
Posts: 29
Joined: Sun May 24, 2020 6:48 pm
Location: Argentina
Been thanked: 1 time
Contact:

Re: Change core clock from 59.18 hz to 60 hz

Unread post by emmadness »

Thank you very much for this work! I have some questions:

1. When I access this modified 60Hz Core, is there something to "activate" in the options?

2. What are the games where you can feel the difference with 60Hz?

I am using a Dell LCD 17" FP1708FP 1280x1024@60Hz monitor with DVI to HDMI output.

I would like to do some tests well and draw conclusions. Thank you very much!
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 »

There is nothing to activate as both aes and mvs have their timing set to 60hz. However what I could do is change the timing only on the mvs. This way 60hz be toggled by using the menu.
User avatar
emmadness
Posts: 29
Joined: Sun May 24, 2020 6:48 pm
Location: Argentina
Been thanked: 1 time
Contact:

Re: Change core clock from 59.18 hz to 60 hz

Unread post by emmadness »

uberyoji wrote: Sun Mar 27, 2022 8:10 pm There is nothing to activate as both aes and mvs have their timing set to 60hz. However what I could do is change the timing only on the mvs. This way 60hz be toggled by using the menu.
That's good because I just like the MVS arcade experience and I play that way.
Can you tell me a couple of games where at 60Hz the change is noticeable? Whether for better or worse, no problem. I want to feel the difference.
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 »

Core updated. Just run the updater if you configured the custom db.
On my end I didnt notice any difference in any roms.
User avatar
lufeig
Posts: 15
Joined: Sat Feb 12, 2022 3:29 am
Location: Brazil
Has thanked: 13 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by lufeig »

On Samurai Shodown II (Samurai Spirits II), on the character selection screen, the background moves constantly from right to left.

On the original core I notice it stuttering from time to time.

On the patched core it moves smoothly.
pac
Posts: 77
Joined: Mon May 25, 2020 6:11 am
Has thanked: 70 times
Been thanked: 26 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by pac »

Just had a look out of curiosity - no issues here with the original core in the SS2 character select screen. But as always, depends on lots of factors like the display used (LG OLED gen 8 here).
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 »

It is mainly for crts.
User avatar
mistahsnart
Posts: 16
Joined: Wed Apr 07, 2021 4:06 pm
Has thanked: 6 times
Been thanked: 5 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by mistahsnart »

For those curious about what 60hz does for HD displays, we had a good discussion on it a while ago. 15khz shadow flickers on the Neo Geo are usually the most notable visible artifact with it's slightly off timing on fixed refresh panels. I have a crystal modded MVS to run at 60hz just for this issue.

viewtopic.php?t=2562

Does it "matter"? Subjectively it can be a distraction, but it's one of those "once you see it, you can't unsee it" things.
User avatar
emmadness
Posts: 29
Joined: Sun May 24, 2020 6:48 pm
Location: Argentina
Been thanked: 1 time
Contact:

Re: Change core clock from 59.18 hz to 60 hz

Unread post by emmadness »

lufeig wrote: Sun Mar 27, 2022 9:26 pm On Samurai Shodown II (Samurai Spirits II), on the character selection screen, the background moves constantly from right to left.

On the original core I notice it stuttering from time to time.

On the patched core it moves smoothly.
I've tried it and you're right, good detail!
User avatar
lufeig
Posts: 15
Joined: Sat Feb 12, 2022 3:29 am
Location: Brazil
Has thanked: 13 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by lufeig »

60hz patched core based on the latest release 20220403

https://mega.nz/file/HDYQmYYD#Kem7qH2rw ... ulO42f5LN4
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 »

Eheh i updated also. If you run update_all with the custom db ;)
Insert Disk Two
Posts: 215
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 26 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

I really appreciate people patching cores to 60hz even though certain certain elitist gatekeepers, don't appreciate because they are against options. Is there a way this can be automated, especially for arcade cores where frequencies are all over the place!

Thanks and keep up the good work.
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 »

Unfortunately it is very difficult to automate :-/ as each source files are different. On top of that, I don't believe you can automate the compilation online with github tasks for example. As for the neogeo, no worries, I will maintain this fork for a long time. My setup is done and it takes me just a couple of minutes to sync, compile and deploy the custom db.

I tried to modify some cores from jotego but he's using a linux env/setup which I haven't spent enough time putting in place properly.

Is there a particular arcade core you have in mind?
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 »

Oh after reading about github actions, I believe some automation could be performed after all as Quartus seems available on linux and could potentially called from command line. Maybe I should start a new thread for further discussion about this.
Insert Disk Two
Posts: 215
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 26 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Insert Disk Two »

uberyoji wrote: Mon Apr 04, 2022 10:16 pm Unfortunately it is very difficult to automate :-/ as each source files are different. On top of that, I don't believe you can automate the compilation online with github tasks for example. As for the neogeo, no worries, I will maintain this fork for a long time. My setup is done and it takes me just a couple of minutes to sync, compile and deploy the custom db.

I tried to modify some cores from jotego but he's using a linux env/setup which I haven't spent enough time putting in place properly.

Is there a particular arcade core you have in mind?
Thanks for taking your time to reply!

Joetgo has been asking for help for people to add 60hz options for his core on his Github, here is the link maybe you want to take a look:
https://github.com/jotego/jtbin/issues/157

I have an Eizo S2133 which is proper 4:3 and I use in TATE mode for shmups. It is quite picky with frequency, so not everything works, for example Out Zone (Toaplan), maybe you can take a look. There are a couple of others, if you are interested I can list them as well.

Regarding other games there are some which may also have issues with some TVs, for example Bad Dudes vs Dragon Ninja (I believe its around 57hz) and Double Dragon 1 and 2 (55hz!).

Thanks :)
Primeira_Fase
Posts: 38
Joined: Sun Jul 17, 2022 4:13 pm
Has thanked: 6 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Primeira_Fase »

Please, could anyone make a TurboGFX / PC Engine core with 60hz?
Primeira_Fase
Posts: 38
Joined: Sun Jul 17, 2022 4:13 pm
Has thanked: 6 times
Been thanked: 6 times

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Primeira_Fase »

Primeira_Fase wrote: Tue Oct 04, 2022 4:00 pm Please, could anyone make a TurboGFX / PC Engine core with 60hz?
Dont need anymore, i have learned how to do It, i maked my own custom core, works great!!!!
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 »

Primeira_Fase wrote: Wed Oct 05, 2022 12:45 am
Primeira_Fase wrote: Tue Oct 04, 2022 4:00 pm Please, could anyone make a TurboGFX / PC Engine core with 60hz?
Dont need anymore, i have learned how to do It, i maked my own custom core, works great!!!!
Good for you. It is not that hard. I mentionned the steps in the posts.
User avatar
SwedishGojira
Posts: 64
Joined: Sun May 24, 2020 7:26 pm
Location: Sweden
Has thanked: 25 times
Been thanked: 28 times
Contact:

Re: Change core clock from 59.18 hz to 60 hz

Unread post by SwedishGojira »

Is there nobody able to just add this to the regular core as a setting? Like some other cores have a setting for 60Hz stable. I believe this would be the proper way to do this instead of just releasing alternative cores every release. Sadly don't know how to do this myself :(
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 »

Sorge is against it. His answer was to a) buy a better tv or b) fork the core. Which I did.
User avatar
SwedishGojira
Posts: 64
Joined: Sun May 24, 2020 7:26 pm
Location: Sweden
Has thanked: 25 times
Been thanked: 28 times
Contact:

Re: Change core clock from 59.18 hz to 60 hz

Unread post by SwedishGojira »

Have anyone actually TRIED to add it as an option? Usually if someone does the actual work and it is done in a proper way then Sorge will actually look at adding functions. But I can understand he don't want to do everything himself.
Ricdeau
Posts: 2
Joined: Tue Jun 23, 2020 8:41 pm

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Ricdeau »

Primeira_Fase wrote: Wed Oct 05, 2022 12:45 am
Primeira_Fase wrote: Tue Oct 04, 2022 4:00 pm Please, could anyone make a TurboGFX / PC Engine core with 60hz?
Dont need anymore, i have learned how to do It, i maked my own custom core, works great!!!!
Sorry to not do this via PM, but since I just lurk here and never post I can't send PMs. Would you mind sharing that modified core? Aside from Neo Geo TurboGrafx is the only core that I play that's far enough from 60Hz that my display doesn't like it.

Also many thanks to uberyoji for maintaining this clock adjusted fork of the Neo Geo 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 »

Ricdeau wrote: Sun Oct 23, 2022 10:44 pm
Primeira_Fase wrote: Wed Oct 05, 2022 12:45 am
Primeira_Fase wrote: Tue Oct 04, 2022 4:00 pm Please, could anyone make a TurboGFX / PC Engine core with 60hz?
Dont need anymore, i have learned how to do It, i maked my own custom core, works great!!!!
Sorry to not do this via PM, but since I just lurk here and never post I can't send PMs. Would you mind sharing that modified core? Aside from Neo Geo TurboGrafx is the only core that I play that's far enough from 60Hz that my display doesn't like it.

Also many thanks to uberyoji for maintaining this clock adjusted fork of the Neo Geo core.
You can find the neogeo fork on my GitHub here: https://github.com/uberyoji/NeoGeo_MiSTer_60hz
Ricdeau
Posts: 2
Joined: Tue Jun 23, 2020 8:41 pm

Re: Change core clock from 59.18 hz to 60 hz

Unread post by Ricdeau »

uberyoji wrote: Mon Oct 24, 2022 4:41 pm
Ricdeau wrote: Sun Oct 23, 2022 10:44 pm
Primeira_Fase wrote: Wed Oct 05, 2022 12:45 am

Dont need anymore, i have learned how to do It, i maked my own custom core, works great!!!!
Sorry to not do this via PM, but since I just lurk here and never post I can't send PMs. Would you mind sharing that modified core? Aside from Neo Geo TurboGrafx is the only core that I play that's far enough from 60Hz that my display doesn't like it.

Also many thanks to uberyoji for maintaining this clock adjusted fork of the Neo Geo core.
You can find the neogeo fork on my GitHub here: https://github.com/uberyoji/NeoGeo_MiSTer_60hz
I have your Neo Geo fork. I was seeing if the other guy would share the TG16 modified core.
Post Reply