mIRC Homepage
Posted By: vigilant mIRC switchbar and cpu usage - 27/01/18 01:01 AM
Hi,

I am on 6 networks or so, and I am in quite some channels on those networks.
When I use treebar it's fine, uses 2% to 5% cpu, but with switch bar it uses from 20% to 30%.

Why is it doing this?

Is there a work around?
Posted By: maroon Re: mIRC switchbar and cpu usage - 27/01/18 01:50 AM
does disabling your timer help?
https://forums.mirc.com/ubbthreads.php/topics/261590/Re:_mIRC_freeze_every_minute_f#Post261590

The beta version in the sticky at the top of the bug reports has a fix for that issue.
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 02:48 AM
Originally Posted By: maroon
does disabling your timer help?
https://forums.mirc.com/ubbthreads.php/topics/261590/Re:_mIRC_freeze_every_minute_f#Post261590

The beta version in the sticky at the top of the bug reports has a fix for that issue.


No that didn't help, I already tried it.
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 02:59 AM
Also I noticed, that when I quit the other networks, and kept only one network, then the cpu usage went down.
As in, the less networks and channels I was in, the cpu usage went down.


I wonder why it's doing that. smirk
I really want to use the switchbar!
Posted By: maroon Re: mIRC switchbar and cpu usage - 27/01/18 06:08 AM
https://forums.mirc.com/ubbthreads.php/topics/262140/mIRC_Slowdowns_for_Massive_Cha#Post262140

per above post, does your usage go down when you use: /fupdate 100

does your cpu usage go down when you temporarily disable your scripts and aliases with: /remote off
and goes back up when you enable them: /remote on

When talking about cpu usage, it helps to know how many cores your computer has. Unless things changed in newer Windows, if you have quad-core, task manager showing 25% means it's using 100% of the core it's running on.
Posted By: Khaled Re: mIRC switchbar and cpu usage - 27/01/18 10:35 AM
How many channels are you on at the same time?
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 04:24 PM
Originally Posted By: Khaled
How many channels are you on at the same time?


74 on all networks combined
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 05:43 PM
Should I try /fupdate 100 with the switchbar on?
Currently I am back to the treebar.
Also what is the default value for /fupdate?
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 05:46 PM
I did try /remote off and that didn't make a difference.
Posted By: maroon Re: mIRC switchbar and cpu usage - 27/01/18 07:23 PM
The thread I linked shows everything published about fupdate.
If you type: /fupdate
it shows the current value. Fupdate defaluts to 0 each time you start mirc, so any desired value should be in ON START or perform-on-connect. 100 is the maximum acceleration it does updating screen. In some cases you'll see the text blink and it's done, instead of a slow scroll. 0-99 are percentages of whatever 100 does, with 0 percent being 'off', the prior behavior.
Posted By: Khaled Re: mIRC switchbar and cpu usage - 27/01/18 07:33 PM
It is unlikely that /fupdate will make a difference here. The issue appears to be the speed of the switchbar display, especially when large numbers of windows are open. I have looked into the switchbar display routines and cannot see a way of speeding them up. That said, I might be able to find a way of implementing a cache of some kind, which might help. I will be looking into this for the next version.
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 08:03 PM
When I type /fupdate it says unknown command.
Posted By: maroon Re: mIRC switchbar and cpu usage - 27/01/18 08:59 PM
You said above that you had already tried the beta, so I thought you were running it.
Posted By: vigilant Re: mIRC switchbar and cpu usage - 27/01/18 10:06 PM
I meant to say I tried turning off the timer, and it didn't help.
I did not try the beta.
Posted By: Raccoon Re: mIRC switchbar and cpu usage - 27/01/18 10:41 PM
What are the sort of behaviors or activities performed by the switchbar that tend to consume CPU? I'm not encountering this, and I do quite a bit of hanky panky with hiding/showing switchbar icons based on channel activity or lack there of.

http://hawkee.com/snippet/17934/ -- r_idlehide.mrc - Automatically Hide Idle Channels from the Switchbar.
Posted By: vigilant Re: mIRC switchbar and cpu usage - 07/02/18 01:58 AM
Hi guys,

It seems I have found out something about the switchbar and cpu usage.

I have unloaded all my scripts, and when I use the switchbar, it's not showing the 25+% usage anymore in task manager.

The cpu usage is between 0-4% max.

So should we assume, there is a script that was causing the high cpu usage?
Posted By: KindOne Re: mIRC switchbar and cpu usage - 07/02/18 03:30 AM
Can you put all your scripts online somewhere?
Posted By: vigilant Re: mIRC switchbar and cpu usage - 07/02/18 03:50 AM
I have loaded the basic scripts that I use, and cpu usage is fine.

I suspect it's one of the complicated scripts, like ilog, or something that is causing the high cpu usage.

I have an antiidle script
script management
whois
vchanger

So these are the scripts I have, it's one of them.

I don't think there is any need to upload my scripts on some site.
Posted By: Khaled Re: mIRC switchbar and cpu usage - 10/02/18 10:19 PM
If a script uses commands that cause the switchbar to be updated often, that could be the cause of the issue. If you test your scripts with the latest beta, available from the bug reports section, do you still see the same issue? The latest beta includes switchbar optimizations that speed it up in a number of situations.
Posted By: vigilant Re: mIRC switchbar and cpu usage - 10/02/18 10:25 PM
It might be the anti idle script then.
Mr Khaled,

I Can work without these scripts now.
Thanks for all your help.
And my bad if I did not listen to you early enough.
You were completely right about saying that scripts are probably causing the issue.

It seems all is fine now.

You must have been a little worried when I came up with the two problems and they are probably related.
© mIRC Discussion Forums