PROBLEM - On Wayland, if you run any game on the dGPU, the mouse will experience severe input lag. CAUSE - The mouse is still rendered by the iGPU, which is unaware that the dGPU is running at maximum speed. So the iGPU stays at its lowest clocks. TEST-CASE 1. Download: https://www.thedarkmod.com 2. Run it with: __GLX_VENDOR_LIBRARY_NAME="nvidia" ./thedarkmod.x64 3. Move the cursor around SYSTEM - Zenned OS - Plasma 6.5.4 - Frameworks 6.21.0 - Qt 6.10.1
Here's how to temporally max the iGPU clocks: On Intel: cat /sys/class/drm/card*/gt_RP0_freq_mhz | sudo tee /sys/class/drm/card*/gt_min_freq_mhz On AMD: echo performance | sudo tee /sys/class/drm/card*/device/power_dpm_force_performance_level
Related discussion: https://forums.developer.nvidia.com/t/frequent-lags-and-loss-of-smoothness-in-kde-plasma-with-dual-monitors-on-nvidia-3070-ti-wayland-x11/311888/31
Still I don't know if this shall be fixed in kwin, or in the nvidia-persistenced daemon in nvidia-open. For the time being I have worked-around the bug on optimus-manager: https://github.com/Askannz/optimus-manager/commit/d3376ef0a2fc2f5a9901790a8ee358125fc63951