Bug 496316 - Night Light slows down mouse movements and animations
Summary: Night Light slows down mouse movements and animations
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: night color (show other bugs)
Version: 6.2.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-11-15 18:15 UTC by medin
Modified: 2025-01-08 22:19 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments
T4400_drm_info.txt (22.44 KB, text/plain)
2024-11-15 18:15 UTC, medin
Details
i3-1005g1_drm_info.txt (221.45 KB, text/plain)
2024-11-15 18:16 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2024-11-15 18:15:42 UTC
Created attachment 175849 [details]
T4400_drm_info.txt

After upgrading to Plasma 6.2, if I enable Night Light, the mouse movements become laggy, and animations are rendered slowly. This problem was not present at all in Plasma 6.1.
Comment 1 medin 2024-11-15 18:16:35 UTC
Created attachment 175850 [details]
i3-1005g1_drm_info.txt
Comment 2 medin 2024-11-15 18:17:45 UTC
Operating System: Manjaro Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.7-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 3 Sander Lindeman 2024-11-26 15:28:33 UTC
Same here.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 58.5 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: LENOVO
Product Name: 21K5CTO1WW
System Version: ThinkPad P14s Gen 4
Comment 4 Zamundaaa 2024-12-19 01:38:38 UTC

*** This bug has been marked as a duplicate of bug 495167 ***
Comment 5 Bug Janitor Service 2025-01-05 03:14:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6967
Comment 6 Zamundaaa 2025-01-05 13:41:32 UTC
Git commit 77c81aef08ba841f30f77745787d06973ecea170 by Xaver Hugl.
Committed on 05/01/2025 at 03:14.
Pushed by zamundaaa into branch 'master'.

backends/drm: fall back to applying night light in non-linear space when linear fails

While this isn't correct for gamma 2.2 with non-zero black level, it's close enough for
most people, and it's definitely preferable for less capable hardware to have good
performance over slightly more correct night light.

M  +20   -9    src/backends/drm/drm_output.cpp

https://invent.kde.org/plasma/kwin/-/commit/77c81aef08ba841f30f77745787d06973ecea170