Author Topic: Epic lag!?  (Read 5437 times)

0 Members and 2 Guests are viewing this topic.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Epic lag!?
« on: August 30, 2011, 10:04:13 AM »
Well, when people join my TTT server, theres mass lag. Lag also happens when people are added/removed from groups.

Any one know why?

We use the latest ulx and ulib. (SVN)

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Epic lag!?
« Reply #1 on: August 30, 2011, 10:23:49 AM »
Does this happen with other gamemodes as well? Or only when you are running TTT.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Epic lag!?
« Reply #2 on: August 30, 2011, 10:29:29 AM »
Uhm, not sure. We havn't tried it with other gamemodes.

Watch this spot. (gimme a few minutes, ill run a test server)

EDIT: Having other problems now, will conclude testing later :/
« Last Edit: August 30, 2011, 10:50:27 AM by Willdy »

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Epic lag!?
« Reply #3 on: August 30, 2011, 06:09:59 PM »
Just curious, how many users do you have in your users.txt file?
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Epic lag!?
« Reply #4 on: August 31, 2011, 03:43:43 AM »
Uhm.. its 20840 lines

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Epic lag!?
« Reply #5 on: August 31, 2011, 09:18:53 AM »
Good call Stickly Man, this seems like a plausible cause. Willdy, can you email Stickly and me your users.txt file (emails are in forum profiles)? If your lag is caused by the large file we'll look into optimizing the reading of that file.

Out of curiosity, why is your file so large?
Experiencing God's grace one day at a time.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Epic lag!?
« Reply #6 on: August 31, 2011, 09:41:10 AM »
We use auto promote, so theres a lot of ranks :P

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Epic lag!?
« Reply #7 on: August 31, 2011, 09:41:48 AM »
I had the same problem when using my sql authentication script I posted. It would add the users to the users.text file even if they were just guests. I fixed it, but never updated it here. Dunno if that is his problem, but it could be..

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Epic lag!?
« Reply #8 on: August 31, 2011, 09:44:05 AM »
What if you did user authentication by having a flatfile per user instead of one file with everyone in it? This might be better on resources with larger scale.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Epic lag!?
« Reply #9 on: August 31, 2011, 09:52:06 AM »
Ive sent the users.txt to all 3 of you, enjoy it! :P

If you want to talk on steam, you can.

http://steamcommunity.com/id/willdy
« Last Edit: August 31, 2011, 09:56:33 AM by Willdy »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Epic lag!?
« Reply #10 on: August 31, 2011, 10:11:01 AM »
Unfortunately at this time I'm training in the field and am using my phone to read/post the forums. Ill be home this weekend though.


Not that id really be much help.    8) 8) 8)

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Epic lag!?
« Reply #11 on: August 31, 2011, 12:19:04 PM »
Im sure your very helpful :P

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Epic lag!?
« Reply #12 on: August 31, 2011, 12:49:37 PM »
Yah, I've come across this problem with the author of APromote, his server was set up to automatically promote anyone on his server whose been connected for (an hour?), so there were quite a few users -- from what I can tell, ULX and XGUI are not fully optimized for large users lists.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Epic lag!?
« Reply #13 on: August 31, 2011, 01:10:46 PM »
When the server is empty, ill modify the auto promote and will remake the users.txt file.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Epic lag!?
« Reply #14 on: August 31, 2011, 02:47:34 PM »
I'm pretty sure there are things we can do to optimize it, I'm discussing with megiddo about it. Do you make extensive use of your "user" group? (ie, the group players are in when they first join your server?) If you immediately or after a short while stick them into a specific group, then you'll get a whole load of users that only play on your server once building up in your users.txt

EDIT: Okay, Megiddo confirmed to me that he doesn't actually send that users table to anyone, it's all handled through XGUI. Which means I have some optimizing I need to do lol. I vaguely remember doing some major optimizations for this very reason a while back, but.. apparently I haven't finished? (It's been a while lol)

I'll look into it as soon as I get home to let you know of the status. When I can actually find the time to make the optimizations is beyond me  :-\
« Last Edit: August 31, 2011, 02:50:23 PM by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6