Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 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.
-
I have a 4k external monitor connected to my dgpu(nvidia, /dev/dri/card0) and an integrated monitor connected to igpu by eDP port.
And when there's no external monitor connected, hyprland work well, with no stuttering. But when it comes to external monitor connected, the external one becomes quite laggy and ESPECIALLY when the cursor goes across the edge of monitors(regardless of direction), the cursor will be laggy for seconds(I think this is a potential bug or something, also see: #3490).
Since dwm is also laggy on windows when not disabling igpu and use only dgpu, so I think there is part of the reason for the lack of performance of the igpu. And through intel_gpu_top I can also see that hyprland is usually able to take up 60%-70% of the GPU, and even 90%+ when dragging windows quickly, which is consistent with the situation under Windows, and I think this also proves my guess.
Then I started to try to offload hyprland itself to the dgpu. After trying, only by specifying
env = AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0can take the effect. And for normal applications (maybe only X11 apps? but there is no documentation to prove this) , theDRI_PRIMEvariable and variables such as__GLX_VENDOR_LIBRARY_NAMEand__NV_PRIME_RENDER_OFFLOADall have no effect, so I'm curious how the gpu is called for rendering inside Hyprland/Aquamarine/Wayland, and does it(or them) not use GLX or EGL?However specifying
env = AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0causes all the apps running in hyprland unable to use the igpu as the master gpu. No matter how I setDRI_PRIMEor__NV_PRIME_RENDER_OFFLOADand many other variables, apps(firefox, chrome, glxinfo) always reports the dgpu is the active one.This question may not be of great practical significance, but I do have doubts. Is this a design problem with Wayland or a lack of Hyprland's functional implementation?
P.S. I'm using NixOS with nvidia "open" driver and in-tree
i915driver(had givenxea chance but results in the same).Beta Was this translation helpful? Give feedback.
All reactions