snowie2000 / mactype

Better font rendering for Windows.
https://mactype.net
GNU General Public License v3.0
9.98k stars 442 forks source link

high cpu on idle #776

Open mailinglists35 opened 3 years ago

mailinglists35 commented 3 years ago

I found mactray and mactype using cpu when computer was idle (overnight with monitor off) As soon as I moved the mouse, the usage dropped.

It's not in the screenshot, if you ask how I identified mactype, I also run a process hacker window but did not include it into the screenshot, mactype+mactray were at the top of cpu usage in process hacker.

Windows 10 (build 19042) Resolution: 1920 x 1080 MacType version: 2019.1 MacTray version: 1.0.2019.1 MacType Tuner version: 1.0.2.361

mactray

snowie2000 commented 3 years ago

First, please upgrade to the latest version 2021.1-RC1.

Then, please don't open mactype process monitor unless necessary. MacTray behaves very differently when the process monitor dialog is opened. When the process monitor is closed, mactray quietly runs in the background and does nothing but wait for the Windows wmi for new process creation notifications. Only then will the mactray be woke up and try to inject into the newly created processes. And in most cases, it doesn't need to.

There were only very few reports after mactype had upgraded to this new mechanism that the process wmiprvse.exe was using too much CPU (by "too much", it was about 5-10%). Since mactray was not responsible for process creation monitoring, it should not do anything when no process creation happens.

The 2019 version has some bugs and some may cause certain processes to crash and recover infinitely, but it has nothing to do with your mouse movement.