uLib Causing Lag Spikes

Post Reply
Daeragon
New to forums
New to forums
Posts: 11
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri May 23, 2014 6:23 pm

uLib Causing Lag Spikes

Post by Daeragon »

Hi,

I own a Garry's Mod server. For some reason, one day, everyone started to freeze when a player would spawn in the server. It would cause five seconds with a frozen screen, and then go back to normal. At this time, we did not install anything new.

I have deleted uLib, and the error goes away! But then a bunch of other issues occur, like no inventory. So deleting this isn't an option. There is no error code in the console, so I have no idea where to start!

If anyone has had the same issue, or knows how to fix it, please give me any help you can.

Thanks,

Daeragon
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: uLib Causing Lag Spikes

Post by soja »

Try:
sv_allowdownload 0
sv_allowupload 0

if they aren't already set. This will not effect the download of custom content on your server as long as it in on the workshop or FastDL.
Not a NFO employee
Daeragon
New to forums
New to forums
Posts: 11
Joined: Fri May 23, 2014 6:23 pm

Re: uLib Causing Lag Spikes

Post by Daeragon »

Do I type these in console? And I forgot to mention that players freeze when someone is changed in rank, and when I try to move someone from one group to the other, my game crashes.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: uLib Causing Lag Spikes

Post by soja »

Put them in the server.cfg.

From your description it just sounds like client side lag.
Not a NFO employee
Daeragon
New to forums
New to forums
Posts: 11
Joined: Fri May 23, 2014 6:23 pm

Re: uLib Causing Lag Spikes

Post by Daeragon »

Ok, will do, but might I ask, what do these commands do?
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: uLib Causing Lag Spikes

Post by soja »

They disable file downloading and uploading from clients. GMOD has an issue with sprays, where it will try to find sprays that are requested by clients, and usually the sprays cannot be found. This for some reason causes server-side lag spikes, particularly noticeable on large servers. These commands make it impossible for players to fill up the servers download folder with sprays, eliminating the ability for the server to search through them.
Not a NFO employee
Post Reply