Page 1 of 1

Lag bug ANNIHILATED!!!!!

PostPosted: Wed Aug 27, 2008 10:50 am
by Karl G.
It's like playing a whole new game--the lag bug was caused by two things:
  • #1: every time someone levels or logs off, the server saves your character into the DB. I assumed it was buffering this so that you weren't writing to the hard drive (VERY slow) every time. I was wrong. The new in-memory database is about 1000-10000 times faster (literally) and the difference is incredibly noticeable.
  • #2: when you "zone" about every 30 steps, the server was sent a packet telling you what was on every single square, even if there was nothing there. this resulted in hundreds of superfluous packets and happen anymore

The result? Profiling tells me that the game goes from spending 98% of its time handling packets to less than 1%.

BAM!

Re: Lag bug ANNIHILATED!!!!!

PostPosted: Wed Aug 27, 2008 10:54 am
by xile
I noticed the fix. Good job....

Re: Lag bug ANNIHILATED!!!!!

PostPosted: Wed Aug 27, 2008 10:59 am
by Richard. UK
I could cry... I want to to test this!! GRR darn BSOD!!!! lol :(

I might go cry myself to sleep....:P lols

Good Job Karl! :D