I use the Vulkan backend on Wayland, and I would like to convince RetroArch to automatically set a custom refresh rate for the VirtualBoy core, which is a 50Hz system. I use HDMI: no CRT or analog connections for me.
Now, to get a temporary 50Hz mode I have to do:
wlr-randr --output HDMI-A-1 --mode 1280x720@50 retroarch -L ~/.config/retroarch/cores/mednafen_vb_libretro.so vb/wario.vb wlr-randr --output HDMI-A-1 --mode 1280x720@60
…and also have this override on the on VB core override:
video_refresh_rate = "50.005001"
(Note that this refresh rate was detected by RetroArch while the temporary 50Hz mode was set on the system).
This way, I get PERFECT Virtual Boy 50Hz emulation with smooth scrolling.
Now, is it possible to tell RetroArch to set a refresh rate using overrides, etc? video_refresh_rate does NOT set a refresh rate: it’s for telling RA the physical refresh rate set on the video output, not for setting one. There are those crt_* options, which I don’t think are of any use for this.
I could create a Wayland custom video mode, like 1280x721@50, and use these overrides for the core to force the 50Hz mode: video_fullscreen_x=1280 video_fullscreen_y=721
…But that would be a very clunky solution: setting a custom refresh rate on Wayland is possible and very easy: can RetroArch do it on this day and age?