mIRC Homepage
Posted By: Online Why do bold codes freeze mIRC? - 31/12/02 11:01 AM
Honestly, it looks extremely weird that bold codes (or other color/underline/reverse ones) makes scrolling and receiving slower.

When a channel is being flooded with bolded text, and you haven't had stripped it, it completely freezes mIRC because it spends much cpu on displaying the texts.

Is there any chance that future versions will treat it more smoothly?
Posted By: Skip Re: Why do bold codes freeze mIRC? - 31/12/02 12:43 PM
I think things would be a lot faster if mIRC didn't draw colours/codes while the window is scrolling, similar to some operating system GUIs having options to not draw windows as they are dragged and dropped.
Posted By: Online Re: Why do bold codes freeze mIRC? - 31/12/02 01:17 PM
The weird thing is that, there are no problems with regular text or other fonts, but only with bold...
Posted By: Gon_ Re: Why do bold codes freeze mIRC? - 31/12/02 03:19 PM
I think it's because mIRC has to parse all the text to render individual letters as bold or colored etc. I dont know exactly how it's done, But i presume that mIRC counts the amount of codes, and then loops through the text, drawing them accordingly. Any control code would produce this problem, not just bold..
Posted By: Online Re: Why do bold codes freeze mIRC? - 31/12/02 04:30 PM
It looks like mIRC has much more difficulties with bold/underline than with color/reverse codes.
Posted By: raps Re: Why do bold codes freeze mIRC? - 31/12/02 10:04 PM
well this is D.O.S Exploit trick i seen flooder use with zombie bots "control code" flood cuaseing mirc to slow down and even crash whole o/s, that why strip codes option was added to mirc, i would advise enableing it smile to limit the affect of this exlpoit attack
Posted By: Online Re: Why do bold codes freeze mIRC? - 01/01/03 05:45 AM
Yea, you're right. personally I strip all bolds, and probably that's what protection scripts do as well.

Although I know about the strip option, I think the mIRC needs to know how to protect itself.
Posted By: codemastr Re: Why do bold codes freeze mIRC? - 01/01/03 05:40 PM
Thats not really the problem, the problem is apparently the control used to draw the text isn't written as well as it should be, note if you use IE on a website with tons of graphics all over, and colored text all over, scrolling doesn't slow it down one bit. Keep in mind I'm not referring to some slow machine, I'm on a 1.4Ghz machine, mIRC is the only program that goes slow with colors all over. I also note that if I do the same in a standard Windows RichEdit control, it does not lag either. This means the problem isn't the system, nor the fact that there are a lot of color codes, the problem is the way mIRC handles them.
Posted By: beware Re: Why do bold codes freeze mIRC? - 04/01/03 08:03 PM
yes mirc redraes the whole text area when you scroll, while other programs BitBlt whatever is already visible, and only redraws the few lines which become visible. this could make mirc much faster, and in cases where it does not: make it an option so the user can choose.

another *option* which i'd like to see, is to not redraw/scroll for every added line, but after processing a block/packet/etc. for example a long MOTD or /WHO then does a few redraws, a /whois reply shows instantly.
Posted By: psy Re: Why do bold codes freeze mIRC? - 12/01/03 10:31 AM
Problem with stripping the codes. If you are teh op controlling the channel, you need to know when there are control codes to ban the flooder for it.

Its all fine and well when you avoid being killed coz u have the strip option on, but if you dont ban them because they are doing it.. it kinda loses the effect.
© mIRC Discussion Forums