Closed YaLTeR closed 4 years ago
We do not currently support Wayland, so it is unlikely this is something we will be looking in to.
Just to clarify, both OBS and Celeste are running in X11 through Xwayland (an X11 server) in this case, so technically this is an OBS-on-X11 issue.
There are many implementations of X, and we only support xserver.
If xwayland is truly compatible then the issue is again not an OBS problem but an implementation performance issue and you should bring it up with xwayland maintainers.
As a side note, xwayland is part of xorg-xserver. It's in the same repo, shares the same code and xorg-xserver maintainers also maintain xwayland.
On X11 with the exact same setup it's captured at 60 FPS as it should be.
In your report, you stated that running on x11 directly this issue was not present. Therefor, it stands to reason this is not really an issue with OBS, but with xwayland or sway.
It definitely sounds like something that should be reported to them, especially if results are inconsistent. If they can provide details that explain the issue and provide direction on how we would resolve it, we can consider changes. However, at this time, Wayland (and by extension any abstraction or compatibility layers) are not supported.
This is something where I'm just generally not sure if we can do anything about for now. We have a capture method for wayland currently in PR state, although I haven't had time to review or even look in to it yet. Perhaps that may work better in the long run.
I asked sway developers and they said it might be an xwayland issue. I'll report it there and see if they can figure it out.
I have reported the issue to xwayland: https://gitlab.freedesktop.org/xorg/xserver/issues/967
Celeste is an X11 game. On Wayland (with the sway compositor) OBS always captures it at around 10 FPS regardless of the OBS FPS setting. On X11 with the exact same setup it's captured at 60 FPS as it should be.
Expected Behavior
Celeste is captured at 60 FPS or whatever other FPS I have selected in OBS.
Current Behavior
Celeste is captured at around 10-15 FPS regardless of the OBS FPS setting.
Steps to Reproduce
Additional information
No other X11 games or applications I captured thus far had this issue (everything captured at the correct FPS).
I tried running Celeste in a child sway running via the X11 backend (so Celeste was running via Xwayland inside sway, which was an X11 window itself running via Xwayland in the parent sway) and capturing this child sway's X11 window via OBS to observe this odd behavior:
You can see a video recording demonstrating the above here: https://youtu.be/5B4z-YOwp04
This leads me to believe there's some issue with OBS not "seeing" that Celeste has pushed a new frame and thus falling back to some kind of a 10 FPS timer.
Log of me opening OBS, observing the 10 FPS Celeste updating in the OBS preview, and closing it: