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: RatRefresh - Automated EDID updater for MAME and others - no more LCD tearing  (Read 16035 times)

0 Members and 1 Guest are viewing this topic.


  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:March 25, 2020, 05:12:25 pm
  • I want to build my own arcade controls!
Hi everyone. Has anyone created a batch file to do the following:

Run the batch
Type in the rom name
Ratrefesh sets the custom res
MAME launches the same "rom" that you typed in?

« Last Edit: April 10, 2019, 09:27:36 am by tonyt76 »


  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 33
  • Last login:September 20, 2019, 02:29:25 am
  • I want to build my own arcade controls!
Tony, I will help you out, and we will post the final .bat here for reference for other people. Rest will be through PM to not clutter the forum. Also fixed the initial posts' images. Sorry for not responding earlier, never got the notifications. Changed my email address now, this one gets them. Probably a spam issue.

Note there's still no improvements in RatRefresh. However, I'm going to do a new version with better usability and hopefully detection of the display device. However, the main issue will still be there, which is restarting of the display driver. So far I've been unable to find a solution, or any third-party tool that can apply new EDID overrides without restarting the video driver.
Again, please prove me wrong :-)
« Last Edit: April 10, 2019, 10:03:30 am by Rataplan626 »


  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:July 22, 2019, 04:38:59 pm
  • I want to build my own arcade controls!
My Attract Mode emulator cfg

# Generated by Attract-Mode v2.5.1
executable           run.bat
args                 "[romfilename]"
workdir              emulators\MAME
rompath              roms\
romext               .zip;.7z
system               Arcade
info_source          listxml
import_extras        nplayers.ini;catver.ini
artwork    marquee         
artwork    snap

This is my batch file (run.bat) in the mame folder with nircmd.exe and ratrefresh configured as per instructions. I use nircmd.exe as attract mode loses focus when relaunched and does not terminate well.   

nircmd.exe killprocess attract.exe

ratrefresh.exe /edidfile edid.txt /file refreshrates.txt /get %~n1;mame

devconx64.exe disable =display
devconx64.exe enable =display

mame64.exe %1

ratrefresh.exe -edidfile edid.txt -refresh 60

devconx64.exe disable =display
devconx64.exe enable =display

nircmd.exe exec2 max "D:\Attract Mode" "D:\Attract Mode\attract.exe"

I use groovymame which would only launch after i added an additional display driver restart, as switchres did not agree.

In groovymame mame.ini
monitor      lcd
lcd_range   50.00-75.00

Putting this altogether you select a game refresh rate is chosen, attract mode terminated, mame launched when you exit mame the display is switched back to 60hz. Attract mode relaunched, Select another game.

I use groovymame with d3d9ex for low latency.