TeamUlysses / ulx

ULX: A powerful administration addon for Garry's Mod
https://ulyssesmod.net
Other
163 stars 73 forks source link

Server lag when adding player to any group with lots of users #209

Closed eggrolls-repu closed 1 year ago

eggrolls-repu commented 1 year ago

Steps to reproduce

  1. Have a large amount of players in garrysmod\data\ulib\users.txt (378 KB)
  2. Add a user in any group
  3. Extreme lag

Expected behavior

Server should add user to group without locking up the server

Actual behavior

Locks up the server (auto disconnect) for about 3 seconds, then adds user in group

Error(s) in server console, if any

No

Error(s) in player's console, if any

No

Version

ULib v2.71d (08/04/22) ULX v3.81d (08/04/22)

I know the problem is my large users.txt file because when I delete it everything works normally but is there any way at all to fix this other than just not having so many users in groups? It's worrying because my server is really small and it's surprising that this has become an issue. I was hoping I could install mysqloo and connect ulib and ulx to it to manage ranks in a separate database to hopefully prevent the lag that way but I found out that isn't officially supported. Which is crazy to me because I know there's other bigger servers that have way more users in groups than me so I do not understand why this is happening to me exactly. Any ideas or feedback would be great help. Thanks

eggrolls-repu commented 1 year ago

Found the fix and exactly what I was looking for. Sorry for not researching this very well, I was very tired last night. This script fixed the lag! Hopefully this helps anyone else with the same issue as me :)

https://forums.ulyssesmod.net/index.php?topic=8377.0