mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

Added ScreenRefreshRate global variable #642

Closed oomek closed 4 years ago

oomek commented 4 years ago

AM now is able to detect the refresh rate of the monitor. it takes just 200ms on AM start, but it does not utilize any platform specific functions. I think it's a good trade-off. This is useful for calculating the target speed of frame based animations on displays other than 60Hz. The advantage of frame based animations over time based is that they remain smooth when the frame delta time varies significantly on artwork reloading but there is no skipped frames due to triple buffering.

FPSMonitor plugin updates:

mickelson commented 4 years ago

thanks!