mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2011
Posts: 53
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2011
Posts: 53
I use a tv-rage and imdb script to parse info and insert it into my various channels. The script is fairly large and mIRC therefore lags - sometimes for 5-10 seconds, making typing impossible. I can see the CPU spikes in Task Manager.

I'm running on a QX9770 with 4GB of RAM, so it's not a HW issue.

That said, would throwing more RAM into the box help, or does anyone know how I can remove the lag?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
RAM won't matter. You will need to improve the script to prevent that kind of lag. mIRC is single threaded meaning that it does one thing at a time. If your script takes that long to process, then it freezes everything else until it finishes. There are ways around that, depending on what you're doing, but it all comes down to fixes the script.


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Just in case that wasn't clear enough, it's not the size of your script that matter's, but how you use it. Seriously though, the actual coding is what slows mirc down, not the size of the script. So if you want to improve the performance of the script you will need to evaluate it and make it more efficient.

Then again, if you are on a 1Ghz processor with 128Mb of RAM that could be the issue as well.

Joined: May 2011
Posts: 53
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2011
Posts: 53
Well, I can't modify the script and it's far too complicated - it also opens a GUI within mIRC.

Still, I'm not sure if it's that or the large number of channels that is causing the lag problem.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you post the script to a location like http://www.mirc.net/paste/ then we (speaking generally) can look at your actual script and, possibly, make recommendations as to how it can be improved.
The fact that it does open a GUI, and that it is active on a large number of channels will make a difference as both of these things are known to cause lag in a script.


Link Copied to Clipboard