Kyome22 / RunCat_for_windows

A cute running cat animation on your windows taskbar.
Apache License 2.0
6.67k stars 592 forks source link

The CPU usage is displayed incorrectly on the icon #114

Open justsonghua opened 1 year ago

justsonghua commented 1 year ago

Describe the bug The CPU usage shown on the taskbar icon is much lower than the usage in the task manager. When my computer is in standby, the task manager shows 15%-20% occupancy, but only 3%-5% is displayed on the icon. When I run the program and the CPU is nearly 100% fully loaded, the icon shows that the usage rate is 30%-40%. This bug exists in both version RunCat-x64 and version RunCat-with-dotnet6-x64.

Win11 22H2 with .Net 6.0.12

Screenshots

9c8d00d49177e2d40d88a1f4183acd5
zylnature commented 1 year ago

me too, Win11 22H2 22621.1105 This bug also occurred on v1.9

Kyome22 commented 1 year ago

@justsonghua @zylnature Maybe there is something wrong with the way to get CPU usage, but I don't know, I am not familiar with Windows or .NET.

Perhaps this line should be improved. https://github.com/Kyome22/RunCat_for_windows/blob/2d65ef464282258c3b2137933cc91bb8cc81007e/RunCat/Program.cs#L80

vivadavid commented 1 year ago

Hi,

I've noticed the same thing today. I'm on Windows 11 22H2 (build 22621.1265).

https://user-images.githubusercontent.com/9334287/219906053-2174cfce-4bd6-4591-a8f8-a00a5c3067bb.mp4

Zostana commented 11 months ago

我的也是

Kyome22 commented 8 months ago

125