joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.8k stars 383 forks source link

Add config value for refresh rate #5224

Open jez9999 opened 1 month ago

jez9999 commented 1 month ago

Is your feature request related to a problem? Please describe.

You can change the refresh rate from the Dosbox-X dropdown menus "Video | Adjust refresh rate", but I don't see a way to do it from config.

What you want

Allow refresh rate to be set from config.

Describe alternatives you've considered

No response

Additional information

No response

Have you checked that no similar feature request(s) exist?

Code of Conduct & Contributing Guidelines

maron2000 commented 1 month ago

Isn't vsyncrate the option you're mentioning? It's prettey easy to find in both .conf file and the configuration tool.

jez9999 commented 1 month ago

I'm not sure it is. I have it set to 75 in config, but in the UI the "refresh rate" is always zero until I set it (setting it to 60 fixes the graphics for Commander Keen 4).

maron2000 commented 3 weeks ago

Seems forcerate is the option you want, found in dosbox-x.reference.full.conf

forcerate: Force the VGA framerate to a specific value(ntsc, pal, or specific hz), no matter what
jez9999 commented 3 weeks ago

Yeah that does seem to work. Maybe it should be in the config file commented out, and some how easier to match up with the UI option "Adjust refresh rate".