]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
cl_maxfps*: various adjustments
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 11 Nov 2023 10:47:50 +0000 (20:47 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 9 Dec 2023 10:13:31 +0000 (20:13 +1000)
commit354208009f5868b5eb706c718f8bb066b77c37de
treebd6467b07957cc6251f69d75688f4feb8281ed93
parenta09de2cce66190c36959a017206fef7d2cabb513
cl_maxfps*: various adjustments

Ensures minimum FPS of 10 even while idle to prevent weird issues
(networking assumes at least 10).
If you want to save more resources, hide the game window (disables
rendering entirely) such as by using vid_minimize_on_focus_loss 1.

Disables cl_maxfps_alwayssleep by default, on modern systems with
accurate timers and higher FPS this has a significant impact.

Allows cl_maxfps_alwayssleep to be used with cl_maxfps 0, this was
requested some time ago.

Switches from cl_maxidlefps to cl_maxfps when querying servers to give
pings representative of what can be expected when playing on them.

Cleans up the cl_maxfps* code.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cl_main.c
cl_screen.c