mIRC Homepage
Posted By: 5618 Lag when joining multiple channels - 11/10/10 05:34 PM
In my experience there is definitely a much bigger lag when joining multiple channels simultaneously. The lag seem to occur when the channel nick listboxes are being filled.

Overall there is much more lag when receiving server responses (e.g. services notices or from a whois) in my case, which is probably a reason for the above.

Edit: ok, I just did some benchmarks to get actual numbers. v7.12 vs v6.35, both copies connected to the same server and (SSL) port, with the same set of (simple) script files loaded.

20 PINGs sent to the server with $ticks (//.quote PING $ticks), alternating between both mIRC copies to try and eliminate temporary server-sided lag.
With the help of /debug, the difference was calculated between the value of $ticks when sent and the value of $ticks at receiving the server reply.
Highest and lowest differences in ticks crossed out and the average of the remaining 18 taken.

v6.35 : 177 ticks
v7.12 : 907 ticks
Posted By: Riamus2 Re: Lag when joining multiple channels - 12/10/10 12:25 AM
5618: If you do the same tests without SSL, do you get the same kind of results? I'm just wondering if it might be related at all to SSL because I haven't really noticed a difference in speed connecting. Of course, I also am not in many channels and usually am not paying much attention while connecting anyhow.
Posted By: 5618 Re: Lag when joining multiple channels - 12/10/10 05:59 AM
Yeah, that thought occured to me too, but I didn't get to test that. I plan to test that when I get home today.

I believe the same holds true for a non-SSL connection though, but I'll have to back that up with numbers.
Posted By: 5618 Re: Lag when joining multiple channels - 12/10/10 03:39 PM
Ok, so it is most definitely caused by SSL afterall. I see no significant difference when connected without SSL.

FYI: I have tried this with both the Win32 OpenSSL v0.9.8o and the Win32 OpenSSL v0.9.8h binaries with the same result.
Posted By: Khaled Re: Lag when joining multiple channels - 12/10/10 03:53 PM
If you can please post the script that you are using to reproduce this issue I will test it out.
Posted By: 5618 Re: Lag when joining multiple channels - 12/10/10 03:58 PM
Heh, I was about to edit my post.

For instance:
Code:
alias dticks {
  if (PONG isin $1) return $calc($ticks - $right($gettok($1,-1,32),-1))
  else halt
}

Use with /debug -i @debug dticks
Posted By: Khaled Re: Lag when joining multiple channels - 12/10/10 04:40 PM
Thanks, I was able to reproduce this issue. It is due to a change that fixes a bug in previous versions of mIRC that caused SSL connections to occasionally freeze mIRC when many SSL connections were open. I think I may have mentioned this in a previous post. I am leaving this change in place for the moment but may look at it again in the future.
© mIRC Discussion Forums