casualsnek / cassowary

Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configuration GUI
GNU General Public License v2.0
2.93k stars 78 forks source link

[Feature Request] Improve Background Client cpu usage #48

Open NICHOLAS85 opened 2 years ago

NICHOLAS85 commented 2 years ago

It seems that when the virtual machine is suspended, the background client attempts to reconnect every 5 seconds. This is what I assume is causing the daemon to have a non-negligible amount of background CPU usage compared to other daemons on my system. As I use this program on a laptop this background usage leads to decreased battery life. Is there a way to make this process more efficient?

Also thanks for Cassowary, it has been very useful running programs for which wine has issues running in my workflow.

casualsnek commented 2 years ago

Can you check how much of background resource is being used by it ? Check for process with command line cassowary -bc

NICHOLAS85 commented 2 years ago

Looks like it was a fluke as now the process isn't constantly using CPU as it seemed when I first opened this issue. Right now it just jumps 0.5-1% occasionaly

wastee commented 2 years ago

I have been seen a higher CPU usage few days ago. I'm not sure what cause it high (3-8%). But now it's normal (0.x%) in v0.6.