hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

[hyprland / xdph] lower framerate with pipewire screen capture (OBS) #201

Closed Fxzzi closed 4 months ago

Fxzzi commented 6 months ago

Here's a video to showcase what I'm experiencing.

The dmabuf capture is coming from the wlrobs plugin. I installed it via wlrobs-hg on the AUR.

If you can tell, the dmabuf capture on the left looks much smoother than the pipewire screen cap on the right. I have no idea if this is related to xdph, hyprland, or novideo, but I am posting here as I assume the screen cap source comes from xdph.

It seems the wlrobs plugin might have had a similar issue: https://todo.sr.ht/~scoopta/wlrobs/23 No idea if these are related somehow, I know nothing about how this schtuff works.

Let me know if you can repro this, or if this is the wrong place to post.

Fxzzi commented 6 months ago

After further testing, I have ruled out it being an issue with Nvidia. The same occurs on my laptop which is amd based with an amd igpu.

https://github.com/hyprwm/xdg-desktop-portal-hyprland/assets/18248986/e189420f-48cd-4d0f-8982-70bd74345834

May be hard to tell here, but the pipewire capture (xdph) definitely has a more laggy cursor than dmabuf. (pipewire is bottom right)

I can tell even from the OBS preview that the mouse isn't as smooth. This isn't just mouse cursor issue, its an issue over the entire capture. Occurs with both hw and sw cursors, amd and nvidia igpu / gpu.

vaxerski commented 4 months ago

120