Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window Capture experiences periodic stuttering when a Window Portal has been shared #9070

Closed
deadmeu opened this issue Jun 11, 2023 · 6 comments
Labels
Linux Affects Linux

Comments

@deadmeu
Copy link
Contributor

deadmeu commented Jun 11, 2023

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

29.1.2

OBS Studio Version (Other)

Flatpak

OBS Studio Log URL

https://obsproject.com/logs/ImHm40OqaOaFNWBM

OBS Studio Crash Log URL

No response

Expected Behavior

Window Capture should not have periodic stuttering when a Window is being captured.

Current Behavior

Using a Window Capture source, when a portal is shared with OBS I begin to experience stuttering every second. If I open OBS and no portal is shared (and the sharing popup opens) I do not experience any stuttering.

Steps to Reproduce

  1. Create a Window Capture source
  2. Select a window to share from the Screen Sharing Portal and share it
  3. Observe a periodic lag spike occurring every second

Anything else we should know?

This seems to be a Flatpak/Wayland issue and could potentially be an issue with the portal provider (although I don't know much about that) rather than with OBS.

Additionally, it seems like if I have OBS running for a while without sharing a window, or by changing the shared window, it sometimes seems to fix the issue and the stuttering stops even while the window is being shared (though I cannot reliably reproduce this). Restarting OBS causes the stutter to begin once again.

@gxalpha gxalpha added the Linux Affects Linux label Jun 22, 2023
@GeorgesStavracas
Copy link
Member

It's not entirely clear from this issue what is stuttering. Is it OBS Studio that sttutters? Is it your stream? Or is it your entire desktop?

@deadmeu
Copy link
Contributor Author

deadmeu commented Jun 23, 2023

It's not entirely clear from this issue what is stuttering. Is it OBS Studio that sttutters? Is it your stream? Or is it your entire desktop?

It's my entire desktop. Everything including my cursor.

Here's an example:
https://github.com/obsproject/obs-studio/assets/12111013/aac4be2b-d4db-4c02-8139-6a05079f162a

Before I share a window I get a consistent 144 fps, but as soon as I begin sharing a window it begins to periodically stutter, causing the fps count to go down to about 138 (on average).

@deadmeu
Copy link
Contributor Author

deadmeu commented Jun 23, 2023

Here's a better example with some basic frame timings:

better-ufo-screen-test.mp4

@GeorgesStavracas
Copy link
Member

Thanks. It's clear from the recordings that your entire desktop is lagging, that's very likely to be a problem in your compositor (seems like it's KDE's kwin? ). OBS Studio does not influence the performance of the compositor, it merely requests a screencast and receives the frames. There is nothing we can do about it on OBS Studio side. Please report this to your desktop environment.

@ghost
Copy link

ghost commented Aug 13, 2023

@deadmeu Did you create a bug in the KDE bug tracker as I'm running into this issue myself.

@deadmeu
Copy link
Contributor Author

deadmeu commented Aug 13, 2023

@deadmeu Did you create a bug in the KDE bug tracker as I'm running into this issue myself.

Yes I did https://bugs.kde.org/show_bug.cgi?id=471364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Affects Linux
Projects
None yet
Development

No branches or pull requests

3 participants