yquake2remaster/src/common
Yamagi 5a21397761 Refactor refreshrate handling from int to float.
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.
2024-04-07 11:01:44 +02:00
..
header Case insensitive sort for player skins 2024-02-02 21:33:14 +11:00
shared VectorLength reduces complexity. 2024-03-25 06:29:23 +00:00
unzip Update miniz to e5700656b34b732f8d4e5df87cb0de00a6c8f319. 2023-11-24 09:26:14 +01:00
argproc.c "constifying" where underlying C calls expect compile time constants. 2023-09-16 16:20:21 +01:00
clientserver.c "constifying" where underlying C calls expect compile time constants. 2023-09-16 16:20:21 +01:00
cmdparser.c Late args parser now uses one string build instead of two 2021-10-30 15:59:50 +00:00
collision.c Fix UBSan Warnings 2021-06-04 13:39:43 +02:00
crc.c Move several CRC function from misc.c to crc.c. 2017-09-07 13:22:36 +02:00
cvar.c "constifying" where underlying C calls expect compile time constants. 2023-09-16 16:20:21 +01:00
filesystem.c Sort the mod list case insensitive. 2024-02-03 16:00:30 +01:00
frame.c Refactor refreshrate handling from int to float. 2024-04-07 11:01:44 +02:00
glob.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
md4.c Cleanup and reformat. 2012-06-07 15:40:58 +02:00
movemsg.c Fix several potential security vulnerabilties 2015-08-24 17:58:19 +02:00
netchan.c silencing static analysis warnings. 2023-01-31 06:47:04 +00:00
pmove.c Added a speedometer that displays the player's speed in QU/s. Wasn't quite sure how to implement it without adding GetPlayerSpeed() to pmove.c. Unsure if there is a cleaner way to do this while keeping it inside cl_screen.c 2024-03-01 14:05:36 -06:00
szone.c Fix UBSan Warnings 2021-06-04 13:39:43 +02:00
zone.c Fixes for PVS Studio warnings: most of src/common/ 2019-07-21 03:14:21 +02:00