deter0 / xborder

Active window border replacement for window managers.
The Unlicense
387 stars 21 forks source link

High CPU usage #50

Open turutupa opened 1 year ago

turutupa commented 1 year ago

I really haven't identified the cause, but if I run picom by itself my PC will run fine. But the minute I run xborders with it, it starts running burning hot. I have shadows and rounded corners applied in my picom config.

I know this is not enough info to learn why its behaving like that, but perhaps you might have some pointers?

deter0 commented 1 year ago

Can you confirm it's xborders is causing this? In a process viewer can you report xborders' CPU and memory usage. Also let me know what your computer's specs are

turutupa commented 1 year ago

This is my laptop: https://www.amazon.com/ASUS-Entertainment-5900HS-2560x1440-Fingerprint/dp/B097DDZ2MV Specs summary: CPU AMD Ryzen 9 5900HS 8-Core RAM 32GB RAM SSD 1TB SSD GPU Nvidia RTX 3080 Max-Q

As per usage, in htop doesn't seem to show high numbers, around 0.7~1.2 CPU% and 0.2 MEM%.

I do see a change in picom numbers, going from 0 CPU% and 0.3 MEM% to 2.6 ~ 3.3 CPU% and MEM% stays the same.

I know this is still little information... could it be GPU related?

deter0 commented 1 year ago

600 MB of memory usage seems high. Does the memory keep increasing is it stable, or in other words is it a memory leak. As for your specs, they seem really good and you shouldn't be experiencing any lag. You can also check your GPU usage by installing a terminal utility for Nvdia cards called 'nvtop.'

turutupa commented 1 year ago

Switched to Integrated mode on laptop (disabled GPU completely) and numbers look the same for now, but I think it might not be getting as hot. I see picom get up to 6 CPU% tho, which seems high.

Edit: seems to stabilize around 4.5 CPU%

turutupa commented 1 year ago

After running xborders for a while, in sensors I see high temps 74C ~ 79C and high fan RPMs, 3200 CPU RPM and 3400 GPU RPM (meaning GPU was not disabled properly after all) and after stopping xborders I get temps down to 61C and 2400 CPU RPM and 2500 GPU RPM

deter0 commented 1 year ago

This is weird, it could be a bug in a library we're using. Will investigate further.