Open Violat0r opened 6 years ago
How many players usually play when this occurs? Can you roughly tell from which round the lag starts?
Could you please test with the changes in commit https://github.com/Tommy228/TTT_Spectator_Deathmatch/commit/ad42369247d4624b08924f549b2c2286531bc748?
There is about 40 or so players on normally. Our sv.db file is quite large as well running at 900mbs.
I do not know where the lag starts exactly I just know it progressively gets worse without a map change. If I were to guess, I would say it is updating everyone that has ever been in deathmatch during the current map even if they weren't in deathmatch when the round ended.
I can test it out and get back to you in a few hours.
Yeah still lagging we are about an hour into the map.
There is not much a developer can do here to fix your "lag". Clean your sv.db
What happened?
The stats being updated at the end of the round is causing my server to lag. It seems that the longer the server goes without a map change the more lag there is to the point where it looks like the server is crashing for 5+ seconds. The code I am referring to is sv_stats.lua#L150 After commenting out the hook/function the server does not lag anymore after a round ends.
Are there any lua errors in the console?
No
Are you using a beta branch of GarrysMod? (No, prerelease, dev)
No
What version of TTT Spectator Deathmatch do you use? (e.g. Workshop, GitHub master, GitHub stable release)
Github master from 05/28/2018