Skip to content
Snippets Groups Projects

SRB2Kart netcode ports

Merged Sal requested to merge TehRealSalt/SRB2:waiting-players-intermission into next
  1. Jul 17, 2023
    • Sal's avatar
      Even more SRB2Kart netcode improvement ports · 4a735470
      Sal authored
      - Prevent connection timeout during the waiting gamestate from the last commit.
      - Keep client connections alive during fades / other internal loops.
      - More consistently timeout clients when they reach the end of BACKUPTICS.
      - Dedicated servers will not run any game logic if no nodes are sending packets to it, to reduce CPU usage when there is no one interacting with your server.
        - Unlike SRB2Kart, the amount of time is configurable with the "dedicatedidletime" console variable. Setting this to 0 will disable this feature.
      - CL_SendClientCmd uses exact packet types instead of magic number offsets.
      4a735470
    • Sal's avatar
      Port SRB2Kart join on intermission fix · 80bf4d6c
      Sal authored
      All gamestates besides GS_LEVEL are unsupported by the save game functions. This commit forces players joining during these gamestates into GS_WAITINGPLAYERS, which is a basic gamestate that just maintains the connection until we can enter the start of a new one. Also provides an extremely simple drawer for GS_WAITINGPLAYERS so the joining player knows what's going on.
      80bf4d6c
Loading