Phax’s Fixes: Hireling Lag
Posted On: August 26th, 2010
Posted By: Phax
Posted in: Bug Fixes
Hireling Lag. I’m talking about the client freezing, only my avatar is moving, why did time just seem to stop, lag.
I was a little dubious about how quickly I’d be able to fix this problem, after reading in the bug report “unable to repro internally”. When you don’t have the ability to reproduce a bug in your development environment, it makes it hard to figure out whats wrong. Kind of like a detective trying to figure out a murder without any forensic evidence.
Luckily, after talking with people who play with hirelings often I found that on live this issue was much more common than I realized.
So with bated breath I sent out an email to the team asking them to collect some logs for me while they played on live. (I had already spent a while attempting to reproduce it myself, without luck.)
Not a couple hours later I had a log file from one of our resident engineers in my inbox. Evidence! I was able to quickly identify the problem with these logs in hand. There was a single message (UpdateHirelingStatus) being sent to the client hundreds of times per second!
With this smoking gun, it looks like this hireling lag will be a thing of the past.
-Phax