Summary: | Wayland compositor performance affects mouse cursor | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Linus Kardell <linus.kardell> |
Component: | compositing | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ledo.kane, nate, qydwhotmail, techsav, xaver.hugl |
Priority: | NOR | ||
Version: | 5.27.6 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/4c397a95263d9c8e73d536ab1c2ac2caaeec60e2 | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
Linus Kardell
2023-07-26 13:21:27 UTC
This can't be fixed in the foreseeable future with llvmpipe as long as it doesn't support either implicit or explicit synchronization with KMS. Fixing it with other drivers is in the works though Is https://invent.kde.org/plasma/kwin/-/merge_requests/3828 supposed to improve this? I don't think it will make a big difference; it reduces latency when the system can keep up but otherwise it still requires rendering to be fast enough. https://invent.kde.org/plasma/kwin/-/merge_requests/4268 will make it so that rendering being too slow will be less bad, but it will still drag the cursor refresh rate down to how fast the rest of the screen can render. I'll close this bug report with a link to the merge request once there's one that actually makes big improvements in this area Git commit 4c397a95263d9c8e73d536ab1c2ac2caaeec60e2 by Xaver Hugl. Committed on 11/09/2023 at 15:02. Pushed by zamundaaa into branch 'master'. backends/drm: split commits for the cursor and primary plane And reorder and merge atomic commits where possible to ensure the cursor always stays smooth M +29 -2 src/backends/drm/drm_commit.cpp M +9 -3 src/backends/drm/drm_commit.h M +99 -15 src/backends/drm/drm_commit_thread.cpp M +1 -0 src/backends/drm/drm_commit_thread.h M +45 -30 src/backends/drm/drm_pipeline.cpp M +1 -2 src/backends/drm/drm_pipeline.h https://invent.kde.org/plasma/kwin/-/commit/4c397a95263d9c8e73d536ab1c2ac2caaeec60e2 *** Bug 463955 has been marked as a duplicate of this bug. *** This issue was fixed but seems to have come back in the new Plasma 6 beta. The mouse is again lagging when composer performance drops. I tested this before in the earlier Plasma 6 Alpha, and the mouse lag was completely gone even when the desktop was running at 10 fps. (In reply to Zamundaaa from comment #4) > Git commit 4c397a95263d9c8e73d536ab1c2ac2caaeec60e2 by Xaver Hugl. > Committed on 11/09/2023 at 15:02. > Pushed by zamundaaa into branch 'master'. > > backends/drm: split commits for the cursor and primary plane > > And reorder and merge atomic commits where possible to ensure the cursor > always > stays smooth > > M +29 -2 src/backends/drm/drm_commit.cpp > M +9 -3 src/backends/drm/drm_commit.h > M +99 -15 src/backends/drm/drm_commit_thread.cpp > M +1 -0 src/backends/drm/drm_commit_thread.h > M +45 -30 src/backends/drm/drm_pipeline.cpp > M +1 -2 src/backends/drm/drm_pipeline.h > > https://invent.kde.org/plasma/kwin/-/commit/ > 4c397a95263d9c8e73d536ab1c2ac2caaeec60e2 There is likely a regression lately. Are you on Intel? Due to driver bugs we had to disable the improvements by default for Intel users, see bug 476860 (In reply to Zamundaaa from comment #8) > Are you on Intel? Due to driver bugs we had to disable the improvements by > default for Intel users, see bug 476860 Yeah, I'm using an Intel iGPU. I didn't have any of the issues that's mentioned in that bug report, but the mouse lagginess was fixed, and now it's back to being bad again. Maybe not every Intel iGPU has the issue mentioned here: https://bugs.kde.org/show_bug.cgi?id=476860. (In reply to Zamundaaa from comment #8) > Are you on Intel? Due to driver bugs we had to disable the improvements by > default for Intel users, see bug 476860 Is there env veriable that can be set to get this back or no? Never mind, I found the environment verifiable on https://invent.kde.org/plasma/kwin/-/merge_requests/4632. merge request. Everything is good now the mouse great again. This issue does not affect me, so I can set KWIN_DRM_DISABLE_BUFFER_READABILITY_CHECKS=0. with no issues whatsoever, I don't get the stuttering or half-fps issues. Also, when readability checks are disabled, I get slight micro freezes as well. I was wondering what was causing that. It seems my Intel iGPU actually get performance issues when readability checks is disabled, and i guess some older igpu's get performance issues with it enabled. This is definitely a strange issue, at least for me. I get way better performance with it on. Never mind about the micro freezes I mentioned before. After a few days of testing, the micro freezes seem to happen whether I have the readability checks enabled or disabled. Enabling readability checks doesn't make the micro freezes any worse or better, but it makes the mouse lag under heavy loads go away, so I'll leave it enabled since it's not what's causing the freezes; something else is. *** Bug 478402 has been marked as a duplicate of this bug. *** |