Open anaximeno opened 1 month ago
If there are some notifications on the notifications menu, it becomes too slow, doesn't even need to be a lot, and uses a lot of CPU resources while it's open.
I've confirmed that this activity does spike the CPU but I've also noticed it with the Menu applet. This leads me to believe it goes deeper and likely into the toolkit. That means it could take a while to even trace.
I don't really see how this is a bug. So, you are using your computer to do something and it used more cpu? Kind of what you would expect. Also curious how htop is showing Cinnamon using like 94% cpu and obs using 50+ %. Not to mention everything else that is using some. Not sure how htop works. Tested here and cinnamon never uses more than 12% with the notification applet. Uses more when moving around in the start menu, but would sort of expect that since a lot of redrawing is going on.
I don't really see how this is a bug. So, you are using your computer to do something and it used more cpu? Kind of what you would expect. Also curious how htop is showing Cinnamon using like 94% cpu and obs using 50+ %. Not to mention everything else that is using some. Not sure how htop works. Tested here and cinnamon never uses more than 12% with the notification applet. Uses more when moving around in the start menu, but would sort of expect that since a lot of redrawing is going on.
What's strange is that after opening the notification menu, the CPU usage continues constantly high. What you would expect is to have some increase in CPU use (probably while constructing the menu for the first time) and then it should reduce the CPU use, I've tested with the start menu and this is the case, and another point is that the start menu does not directly use as many resources as the notification menu is using (while only having 5 notifications). In the video, the notification menu also takes some time to open, more than the start menu takes usually, which is why I noticed this issue.
It seems to me that something needs to be optimized.
About OBS using less CPU I suppose it's because OBS is using multiprocessing, and the Notification menu is executing in that specific Cinnamon process that appeared in the video.
Can confirm. +1
@rcalixte it definitely goes deeper and is not always reproducible. I shared one of the scenarios that seems to be always triggering this behaviour here
+1. Video in OP comment is similar to what I'm seeing
Distribution
LMDE 6
Package version
Cinnamon 6.0
Graphics hardware in use
Intel Alder Lake-UP3 GT2 [Iris Xe Graphics]
Frequency
Always
Bug description
If there are some notifications on the notifications menu, it becomes too slow, doesn't even need to be a lot, and uses a lot of CPU resources while it's open.
Steps to reproduce
https://github.com/user-attachments/assets/955f5ca2-f43c-4ae6-bc10-16cfdd426ee5
Expected behavior
It probably shouldn't use this many resources to keep the notification menu open for only these notifications. So maybe some optimizations might be necessary.
Additional information
No response