Author Topic: Rubberband like lag  (Read 7473 times)

0 Members and 1 Guest are viewing this topic.

Offline middleearth

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Rubberband like lag
« on: May 22, 2016, 09:28:06 AM »
Version: ULib v2.60d (05/19/16), ULX v3.70d (03/20/16)
Game mode(s) I am having this problem on: TTT
Lua errors shown in console, if any: None
Details: When a player joins or leaves the server everyone lags with this rubberband effect that pulls you back for half a second. Upon removing ulib and ulx the issue doesn't persist. groups.txt is 10KB, users.txt is 5KB, neither have a ton of groups or users.


Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Rubberband like lag
« Reply #1 on: May 22, 2016, 09:40:09 AM »
What are your server's specs? Neither your groups.txt or users.txt file is very large, but the only cause for lag when a player joins that I know is caused by ULX is the lag of reading those files. The only thing I can think of is your server does not have adequate resources.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline middleearth

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Rubberband like lag
« Reply #2 on: May 22, 2016, 10:19:31 AM »
I'm not really certain about the specs but it runs great all the time. This only happens when a player joins or leaves the server.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Rubberband like lag
« Reply #3 on: May 22, 2016, 02:21:25 PM »
Middleearth, if you shutdown server, then move/rename/backup data/ulib groups and users.txt, and then restart server with a 'fresh' users and groups files, then add only yourself to superadmin using server console/rcon and then have someone else join, does it still happen to you?

This is the first time, in many years, I've seen this issue reported.
Other than a conflicting (with ulib or ulx) addon/gamemode feature, or a corrupt groups or users file in someway (which testing fresh should help test), it sounds like a resource issue as roastchicken suggests.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: Rubberband like lag
« Reply #4 on: May 22, 2016, 05:54:55 PM »
In addition, I don't think the groups/users filesize would be an issue on disconnect -- that was only ever a problem on connect.

Do you have custom ULX commands that are hooking in to connect/disconnect (and doing something naughty)?

Offline middleearth

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Rubberband like lag
« Reply #5 on: May 24, 2016, 05:47:16 AM »
I used your hooks addon, disabled all 3rd party addons besides ULX and Utime that hook PlayerDisconnected, yet the issue still remains. I have literally tried everything at this point and I can't pinpoint the cause. If anyone is willing to take a closer look at the server and fix the issue I'd be more than happy to compensate for the time spent fixing it.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Rubberband like lag
« Reply #6 on: May 24, 2016, 02:44:19 PM »
Have you tried removing ULX as well? If it persists even without ULX, it might be something more serious like your server install being corrupt.

I think your best option is to do a clean server install and start adding addons one by one, and then if the problem is fixed then start adding your data (users and groups, etc) back. Either you fix your problem, or you narrow in on what might be causing it.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: Rubberband like lag
« Reply #7 on: May 25, 2016, 06:38:26 PM »
FWIW, he did say at the outset that removing ULib/ULX resolved the issue.

When you say "my hooks addon", do you mean dbugr?  Not mine, though I did fork it to update it for some hook changes.  Does dbugr provide any insight?  You should see a jump somewhere during the lag....  hooks, network, timers... something.

What does client-side netgraph show?  drop in server fps?  choke?  anything weird?

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Rubberband like lag
« Reply #8 on: May 26, 2016, 05:08:00 AM »
FWIW, he did say at the outset that removing ULib/ULX resolved the issue.

Ah, I must've missed that.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline middleearth

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Rubberband like lag
« Reply #9 on: May 27, 2016, 09:48:11 AM »
Middleearth, if you shutdown server, then move/rename/backup data/ulib groups and users.txt, and then restart server with a 'fresh' users and groups files, then add only yourself to superadmin using server console/rcon and then have someone else join, does it still happen to you?

This is the first time, in many years, I've seen this issue reported.
Other than a conflicting (with ulib or ulx) addon/gamemode feature, or a corrupt groups or users file in someway (which testing fresh should help test), it sounds like a resource issue as roastchicken suggests.

Yes, it still happens.

FWIW, he did say at the outset that removing ULib/ULX resolved the issue.

When you say "my hooks addon", do you mean dbugr?  Not mine, though I did fork it to update it for some hook changes.  Does dbugr provide any insight?  You should see a jump somewhere during the lag....  hooks, network, timers... something.

What does client-side netgraph show?  drop in server fps?  choke?  anything weird?

I meant your server hooks info addon. Dbugr was too confusing. I couldn't make sense of the data even after reading the instructions several times.

The client graph shows a jump in choke. Could it possibly be an issue with my config or rates? What rates should I be using?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Rubberband like lag
« Reply #10 on: May 27, 2016, 01:52:47 PM »
The client graph shows a jump in choke. Could it possibly be an issue with my config or rates? What rates should I be using?

And we're back to square one - we wouldn't know, nor would we even know what to suggest, without knowing about the bandwidth ans server specs of your host, how many players you have, if any, when you experience this. Many other potential lag causing issues in combination that could cause ULib and ULX to seem to be the culprit, when really it's only either pushing over the edge.

What are your server's specs? <clip> The only thing I can think of is your server does not have adequate resources.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline middleearth

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Rubberband like lag
« Reply #11 on: May 27, 2016, 03:41:07 PM »
There is choke even with just two players when the second player connects. The server itself runs fine all the time, this choke only occurs when a player joins or disconnects from the server that's why I believe the server specs are fine.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: Rubberband like lag
« Reply #12 on: May 27, 2016, 07:24:32 PM »
Any time I see choke my first question is, what's sv_minrate/sv_maxrate ?

Not that it doesn't sound like there's another issue, but I'm curious.


Offline middleearth

  • Newbie
  • *
  • Posts: 9
  • Karma: -1
Re: Rubberband like lag
« Reply #13 on: May 27, 2016, 07:42:32 PM »
sv_minrate 99999
sv_maxrate 0

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Rubberband like lag
« Reply #14 on: May 27, 2016, 08:14:36 PM »
There is choke even with just two players when the second player connects. The server itself runs fine all the time, this choke only occurs when a player joins or disconnects from the server that's why I believe the server specs are fine.

The most likely spec to cause this would be read/write speed. Most of the time the server is not reading/writing large amounts of data, however when a player joins it is. Please try to ask your server host about the server's specs. However the lag on disconnect is confusing, no idea what could be causing that.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.