pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.74k stars 55 forks source link

Laggy cusor on some apps on ultrawide monitor #350

Open tobyrg opened 1 month ago

tobyrg commented 1 month ago

When I have applications being tiled by themselves on a 3440×1440 the CPU there is high cpu usage for the cosmic-comp and the application I have opened.

Drakulix commented 1 month ago

Too few information to debug this. (Many of our users have ultrawide monitors without the problems you mentioned.)

Some things that might help:

tobyrg commented 1 month ago

I experienced this in cosmic-term, cosmic-settings.

I'm testing COSMIC on 2 laptops with a i5 8250u and Ryzen 5 4650u Pro. The lag is more apparent on the Intel CPU (I'd imagine this is because it's weaker).

I can see the CPU usage spike in top/htop.

I'm using a Dell P3424WE which includes a KVM which how I am connecting both laptops. I use the monitor at work so I'll get the logs on Monday.

Edit: Remove Firefox as it not affected.

tobyrg commented 1 month ago

On further testing I can only really experience the laggy cursor in COSMIC Settings on my Ryzen 5 4650u Pro laptop. On the Intel laptop it's way worse, I can see up to 11% CPU usage on the COSMIC Setting, COSMIC Term is a little better with 7% CPU usage.

There is nothing obvious in on the AMD laptop in journalctl but on the Intel laptop there is this message

Unable to become DRM master, assuming unprivileged mode on every boot.

mmstick commented 1 month ago

cosmic-settings uses a software renderer currently, so higher CPU usage is expected.

tobyrg commented 1 month ago

Maybe CPU usage has nothing to do with this issue then? Should I edit the title?

tobyrg commented 1 month ago

Since cosmic-settings is now using wgpu the cursor is not laggy.

I did notice that cosmic-applibrary has the issue as well so maybe it's a libcosmic issue?

Also when I mean it's laggy it's as if it's running at a lower refresh rate.

tobyrg commented 1 week ago

It still seems to be an issue, I'm using an eGPU connected to 4K monitor and using mangohud I can see that all of the cosmic apps are locked to 20 FPS.