Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Generating Source/Driver Specific ini Files Based on Refresh Rate  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

robbo43

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:April 04, 2021, 09:25:51 pm
Hi All,

Bit of background info, I've used CRU to enable Freesync on my 43 inch Samsung TV and Ryzen 3400G. It works beautifully with Groovymame. The TV will only accept Freesync between 48 and 60 Hz, so I need to enable autosync, refreshspeed and frame delay for games with refresh rates 60Hz and higher.

Is there an easy way to scrape refresh rate information from MAME and auto generate source/driver ini files to enable those options for games >= 60Hz?

Many Thanks

Rob

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 593
  • Last login:Today at 05:18:56 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #1 on: October 18, 2020, 05:25:59 pm »
You should be able to do that using mame's dat file + xpath. Shouldn't be that hard for someone with a little knowledge ox xml/xpath + required tools
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

schmerzkaufen

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 704
  • Last login:April 07, 2021, 06:15:05 pm
  • I want that recipe
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #2 on: October 19, 2020, 03:45:39 am »
I assume you've checked if your TV can run the desktop at like 61Hz already ?
http://forum.arcadecontrols.com/index.php/topic,161033.msg1697722.html#msg1697722

Guess 62 would be even better for MAME, but who knows what each existing 60Hz display will accept beyond.
(and that's why displays review that don't investigate such things are useless)
It is so unbelievably stupid from all manufacturers to have produced quantity of displays featuring VRR but capped at 60 which utterly ruins it.
GravyMOM LCD user i5-4690k @3.9GHz, RX Vega 56, W7 64, crt_emudriver 2.0b15 18.5.1
PSA: general warning regarding internet communities where emulation is an important discussion topic: freedom of speech stops where criticism of MAME and its devs begins.

robbo43

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:April 04, 2021, 09:25:51 pm
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #3 on: October 19, 2020, 05:21:56 am »
You should be able to do that using mame's dat file + xpath. Shouldn't be that hard for someone with a little knowledge ox xml/xpath + required tools

Thanks, I'll take a look. I may actually import the xml data into excel and use a vbscript to generate a txt/batch file

robbo43

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:April 04, 2021, 09:25:51 pm
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #4 on: October 19, 2020, 05:26:44 am »
I assume you've checked if your TV can run the desktop at like 61Hz already ?
http://forum.arcadecontrols.com/index.php/topic,161033.msg1697722.html#msg1697722

Guess 62 would be even better for MAME, but who knows what each existing 60Hz display will accept beyond.
(and that's why displays review that don't investigate such things are useless)
It is so unbelievably stupid from all manufacturers to have produced quantity of displays featuring VRR but capped at 60 which utterly ruins it.

It's a bonus for me that the TV accepts Freesync at all - it's not supposed to!

I can run the desktop at 1920x1080@63Hz, but unfortunately as soon as I start MAME the TV displays a corrupt image. This happens even if I launch a <60Hz game (rtype/MK etc.) directly from command line.


schmerzkaufen

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 704
  • Last login:April 07, 2021, 06:15:05 pm
  • I want that recipe
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #5 on: October 19, 2020, 07:26:29 am »
Neither is my monitor's but I get VRR from CRT_Emudriver and this guide: http://geedorah.com/eiusdemmodi/forum/viewtopic.php?id=374
It's a completely different method but at least I am not bound by such issues.

Anyway, maybe your case is fixable, dunno, sounds weird that it doesn't work unless your 63Hz is not genuine but a compatibility mode dropping frames instead.
If you're lucky it's real and only a matter of settings.
I personally can't be of any valuable help since since this scenario is so different from my own setup's.

Hopefully if you drop a groovymame log or two (using current settings, then your attempt @63) maybe then you will be graced by the dev's visit and advice. \_(ツ)_/
GravyMOM LCD user i5-4690k @3.9GHz, RX Vega 56, W7 64, crt_emudriver 2.0b15 18.5.1
PSA: general warning regarding internet communities where emulation is an important discussion topic: freedom of speech stops where criticism of MAME and its devs begins.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 593
  • Last login:Today at 05:18:56 am
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #6 on: October 19, 2020, 07:36:49 am »
Mame's dat is like 200MB, not sure Excel will survive, nor if it can open xml files.
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

robbo43

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:April 04, 2021, 09:25:51 pm
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #7 on: October 19, 2020, 04:39:26 pm »
Mame's dat is like 200MB, not sure Excel will survive, nor if it can open xml files.

Yep, it's huge. I managed to strip out the machine and refresh rate details and generate a much more managable 3MB XML. I then imported it into Excel and created a batch file to generate the sourcefile inis for each system.

robbo43

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:April 04, 2021, 09:25:51 pm
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #8 on: October 19, 2020, 04:41:38 pm »
Neither is my monitor's but I get VRR from CRT_Emudriver and this guide: http://geedorah.com/eiusdemmodi/forum/viewtopic.php?id=374
It's a completely different method but at least I am not bound by such issues.

Anyway, maybe your case is fixable, dunno, sounds weird that it doesn't work unless your 63Hz is not genuine but a compatibility mode dropping frames instead.
If you're lucky it's real and only a matter of settings.
I personally can't be of any valuable help since since this scenario is so different from my own setup's.

Hopefully if you drop a groovymame log or two (using current settings, then your attempt @63) maybe then you will be graced by the dev's visit and advice. \_(ツ)_/

I'd love to get my TV to accept Freesync up to 62Hz. I may do as you suggest to see if there's any tweaks I can do.

robbo43

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:April 04, 2021, 09:25:51 pm
Re: Generating Source/Driver Specific ini Files Based on Refresh Rate
« Reply #9 on: October 21, 2020, 03:31:00 pm »
I decided to take a slightly different approach to 60Hz and higher games. I decided to alter the game speed to keep the game within the TV's Freesync range rather than go down the vsync/autosync + frame delay route. Works really well.

I used the excel file I created from the mame xml to generate the batch commands and could filter so I could set up per system ini files to tweak the game speeds e.g. 60Hz: speed 0.998,  >60-60.1Hz: speed 0.996, 60.1Hz-60.6Hz speed 0.988 etc.