mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-27 22:30:45 +00:00
With SDL 2 the refreshrate handling was rather limited by SDL 2 only supporting integer refreshrates, making it impossible to represent the common 59.95hz and other non-integer refreshrates. Quake II works around this by assuming a refreshrate of 2hz higher than returned by SDL. SDL 3 finally supports float refreshrates. Refactor the internal API to also use floats. This should be a no-op since the 'refreshrate * 1.02' logic stayes in place for the time being. This can be reevaluated at a later time for the SDL 3 build, but needs testing. As a nice side effect fix the `vid_displayrefreshrate` cvar. It was broken in both SDL 2 and 3 since it was always overwritten with the actual display refresh rate. |
||
---|---|---|
.. | ||
header | ||
shared | ||
unzip | ||
argproc.c | ||
clientserver.c | ||
cmdparser.c | ||
collision.c | ||
crc.c | ||
cvar.c | ||
filesystem.c | ||
frame.c | ||
glob.c | ||
md4.c | ||
movemsg.c | ||
netchan.c | ||
pmove.c | ||
szone.c | ||
zone.c |