Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Stats causing lag #77

Open
Violat0r opened this issue Jun 26, 2018 · 4 comments
Open

Stats causing lag #77

Violat0r opened this issue Jun 26, 2018 · 4 comments
Labels

Comments

@Violat0r
Copy link

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

MinIsMin added a commit that referenced this issue Jul 7, 2018
@MinIsMin MinIsMin added the bug label Jul 7, 2018
@MinIsMin
Copy link
Collaborator

MinIsMin commented Jul 7, 2018

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 ad42369?

@Violat0r
Copy link
Author

Violat0r commented Jul 8, 2018

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.

@Violat0r
Copy link
Author

Violat0r commented Jul 9, 2018

Yeah still lagging we are about an hour into the map.

@mcNuggets1
Copy link
Contributor

There is not much a developer can do here to fix your "lag".
Clean your sv.db

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants