Color management is not precalculated #11719
Unanswered
easyaspi314
asked this question in
Bugs - Performance
Replies: 1 comment 4 replies
-
|
@UjinT34 IIRC you moved some logic to the cpu, can we do more? ???? that would indeed rack up gpu usage for no reason... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hyprland version
HEAD 0.51.0 559024c with unrelated modifications for libstdc++ 14
Void Linux
Regression
No
Describe the bug
Color management does expensive color space conversions on the GPU, which roughly doubles GPU utilization on potatoes like Intel UHD 620.
I believe that the main culprits are
doColorManagementcallingprimaries2xyzwhich contains a lot of multiplications and an expensive matrix inverse, as well asdoColorManagementbeing called on borders and shadows which, if I am not mistaken, can be done once with the main color management pass.As much as possible should be performed on the CPU and passed as uniforms.
Reproduction steps
For this, I did
echo 1150 | sudo tee /sys/class/drm/card0/gt_min_freq_mhzto ensure my iGPU runs at a stable GPU frequency.I used the following config:
With two kitty windows open, GPU usage went from 9% to 18%. This is made worse when you use complicated configs; with some fancy blurs and opacity, it goes from 22% when repainting to 52%.
System info and config
hyprctllog.txt
Beta Was this translation helpful? Give feedback.
All reactions