Skip to content

[Feature Request] Variable vsync swap interval support #1737

@vanfanel

Description

@vanfanel

Hello there,

It has been some time since I tried Amiberry, and I have built it today from latest GIT sources to see how it has evolved.
I use an VRR capable monitor now (AdaptiveSync in Wayland terms) which is running at it's default frequency of ~120Hz. VRR works for all SDL2 games I throw at it, for MAME, etc.

Now, Amiberry seems to be unable to use it properly: it uses classic VSYNC apparently, so if I set an NTSC chipset configuration on my 120Hz video mode, games run twice as fast as they are supposed to.
That's all right: VRR is not that great for emulation (frametime variations cause a different set of problems that I won't mention here: VRR is great for native games and that's about it).

But using 120Hz video mode for NTSC content and 100Hz for PAL content is great: it prevents input lag and prevents ghosting to a great degree!
On RetroArch, for example, it's possible to set "Vsync Swap Interval" to 2, and that lets 60Hz content run at the correct speed in 120Hz video modes, or 50Hz content to run at the correct speed in 100Hz video modes.
I have been ticking / unticking the Display options in Amiberry to no avail for hours, but none of them seems to to this. Could such an option be added, please?

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions