Bumps max client fps from 120 (125) to 1000 (#29467)

* 300 > 120

* ooooh i don't need sql change

* same but descending + fix issue about DB

* well, i should update bd

* default is 100, keep only divisors of 1000

* fuck you byon d!!!!

* cleanup
This commit is contained in:
kyunkyunkyun
2025-08-07 20:07:23 +00:00
committed by GitHub
parent 2fae84052c
commit f8c97bfed8
7 changed files with 32 additions and 13 deletions
+1 -1
View File
@@ -438,7 +438,7 @@
#define INVESTIGATE_DEATHS "deaths"
// The SQL version required by this version of the code
#define SQL_VERSION 68
#define SQL_VERSION 69
// Vending machine stuff
#define CAT_NORMAL (1<<0)
+14
View File
@@ -183,3 +183,17 @@
#define COLOURBLIND_MODE_DEUTER "Red-green (green weak, deuteranopia)"
#define COLOURBLIND_MODE_PROT "Red-green (red weak, protanopia)"
#define COLOURBLIND_MODE_TRIT "Blue-yellow (tritanopia)"
/// Best FPS options for clients. A regular list that has only divisors of 1000
GLOBAL_LIST_INIT(client_fps_options, list_fps_options())
/proc/list_fps_options()
var/list/options = list()
for(var/option in 1 to 1000 / world.fps)
if(1000 % option) // Lummox said it works better with divisors of 1000
continue
options += 1000 / option
return options