Job estimation refactor (#4544)

## About The Pull Request
This PR moves the job estimation panel to SSticker, reducing its
performance impact.

No player-facing changes, it'll work exactly the same

## Why It's Good For The Game
The server will hopefully crash less

## Proof Of Testing
<img width="242" height="85" alt="image"
src="https://github.com/user-attachments/assets/535f8e6d-e175-440c-a0d4-1fac5e4d5a51"
/>

## Changelog

🆑 ReturnToZender
refactor: Job estimation now performs better
/🆑
This commit is contained in:
Return
2025-08-26 11:44:28 -07:00
committed by GitHub
parent 08cbc290bd
commit eff9523da9
4 changed files with 50 additions and 50 deletions
+3
View File
@@ -196,12 +196,15 @@ SUBSYSTEM_DEF(ticker)
totalPlayers = LAZYLEN(GLOB.new_player_list)
totalPlayersReady = 0
total_admins_ready = 0
var/list/readied_players = list() //BUBBER EDIT ADDITION
for(var/mob/dead/new_player/player as anything in GLOB.new_player_list)
if(player.ready == PLAYER_READY_TO_PLAY)
readied_players[player.key] = player //BUBBER EDIT: job estimation, filling the readied list we use later
++totalPlayersReady
if(player.client?.holder)
++total_admins_ready
job_estimation_list = get_job_estimation(readied_players) //BUBBER EDIT ADDITION
if(start_immediately)
timeLeft = 0