ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
660 stars 76 forks source link

[TF2] [SRCDS] Linux: Server dropping "out of order"/random packets #6481

Open coredesu opened 1 month ago

coredesu commented 1 month ago

The server randomly drops "out of order" packets causing janky player movement after a few days (or a week) of server uptime.

The only solution I have found is to change the map or restart the server, and the server performance is stable, staying at 66.7 tick rate constant, so I'm not sure what else could be the culprit of this issue.

Before the server changed the map.

https://github.com/user-attachments/assets/eed2fcb7-ffd2-4cf3-8ca5-5cc4b7873611

After the server changed the map:

https://github.com/user-attachments/assets/f582f0a2-431a-449d-aea3-88514ae2530b

naydef commented 1 month ago

I guess this happens because float stuff like curtime gets so great after server is running for several days that it loses precision to represent time between two server ticks (tick_interval I guess), thus the jankiness.

Btw, Generally it's a good idea to restart the server every so often, I do it daily.