Hello TEAM :-)
For those interested, I'm offering this modified version of MAME 0.168 which allows you to automatically SAVE the "Slider Refresh Rate" setting of the slider, accessible via the Tab key, and save it in the configuration files (.cfg) of each game.
Binary files for Windows 32-64 (compatible with XP / 7 / 8 / 10 / 11) and source code are available here:
https://github.com/HardCade/hardcade/releases/tag/Mame_slider_refresh_saveSome info from the README:
= ... ======================================================================================
This modified version of MAME 0.168 adds the ability to automatically SAVE the "Refresh Rate" setting of the
SLIDER, accessible via TAB, in the configuration files (.cfg) of each
game.
✓ Allows you to fine-tune all resolutions with extreme precision (3 decimal places)
NOW: The slider setting is saved and restored automatically!
⚠ PREREQUISITE: The "cheats" option must be enabled in the mame.ini file
for the "Screen Refresh Rate" slider to appear.
→ This option is ENABLED BY DEFAULT in this version.
===========================================================================================
VIDEO CONFIGURATION TO FINE THE REFRESH RATE
===============================================================================================================
This version has been configured to facilitate refresh rate adjustment:
✓ Triple Buffering: DISABLED (triplebuffer = 0)
✓ V-Sync: DISABLED (waitvsync = 0)
✓ Filters Video: DISABLED
= ... ===========================================================================================
The settings are saved in: cfg/[game_name].cfg
Example for Double Dragon: cfg/ddragon.cfg
You can open this file with Notepad to see:
<?xml version="1.0"?>
<mameconfig version="10">
<system name="ddragon">
<screen_refresh>
<screen tag=":screen" refresh="60.000000" />
</screen_refresh>
</system>
</mameconfig>
===========================================================================================
FEATURES
========================================================================================================
✓ Automatic saving of the slider refresh rate to the .cfg file
✓ Automatic loading on game startup
✓ Intelligent detection (only modified values are saved)
✓ Accuracy 0.001 Hz (3 decimal places)
✓ Automatic reset when you return to the default value
✓ Compatible with all MAME games
✓ The "Screen Refresh Rate" slider retains its value between sessions