Closed arazadaz closed 1 year ago
After looking at issue #396
I think this is just the same issue, but here's my log anyhow. It might not have anything to do with it being a prime setup.
I also experience this when screensharing but I don't have any special setup. I've tried both Wayland (Hyprland) and x11 (bspwm) and my screenshares always have unwatchable framerates. My friend is able to count them.
I don't have a prime setup, just an RTX 3070 Desktop.
Might be an issue with Nvidia. I've seen a few things about them lacking dmabuf import support on Linux which creates a number of issues. I'm not an expert on this topic, but we may just have to wait for Nvidia to fix it on their end assuming Nvidia is the issue.
I will say however that my X11 performance was perfectly fine with the regular discord client. Never tried Webcord or the browser's screen share on X11 though. I don't use X11 anymore.
I'm seeing no hardware acceleration on WebCord on my AMD Wayland system, and this causes issues with video playback and screensharing performance (as well as increased power usage when WebCord is open/focused). I reported this in #300 but my understanding is that this can't be solved by WebCord itself. I've experimented with adding the flags that get Chromium to have acceleration in the optimize.ts snippet shared and compiling WebCord, but had no success.
I've experimented with adding the flags that get Chromium to have acceleration in the optimize.ts snippet shared and compiling WebCord, but had no success.
LOL you can just execute WebCord with these flags, there's no need to recompile and repackage WebCord just to test it.
I'm also closing this, as @TheSunCat said if you can't get hardware acceleration, there's no way for me to magically enable it for you, it's Chromium's fault not mine. There's a lot you can experiment with (flags, different drivers and Electron version), but you should be aware it won't be easy. WebCord tries in optimize.ts
to use some known flags which might help to get hardware acceleration working (especially on Linux), but it does not guarantee this will work out-of-the-box on any GPU. This is not a bug, but rather a limitation of the engine.
Oh that's good to know! I might give it another go later if I don't have to recompile every time haha. If I do get it working, I'll post the flags I used here.
Dear all
I don't know if this is a error Knowledge or not but I have this issue on performance in the last release in debian 12. I tried with discord and it works better than it. I want use webcord because full screen sharing in wayland is fully supported but the performance on it is awful, too much laggy. Could I help on it sending logs or similar? I downgrade two previous release even the colleage has indicated v4.6.1 and this one works a little bit better but not optimus.
Aknowledgements
[X] I have checked that there is no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.
[X] This bug affects Discord website.
[ ] This issue is confirmed to be reproduceable when WebCord is packaged on at least all three latest supported Electron major releases.
[ ] This issue is reproduceable in Chrome, Chromium or any Chromium-based browser, e.g Brave or Edge (please write in Additional Context which browser you have used if it is neither Chrome nor unmodified Chromium).
[ ] There are no fixes done to
master
which resolves this issue.[ ] My issue describes one of the unstable and/or not fully implemented features.
[ ] I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).
Operating System / Platform
🐧️ Linux
Operating system architecture
x64 (64-bit Intel/AMD)
Electron version
22.0.0 / 108.0.5359.62 / 16.17.1
Application version
4.1.1
Bug description
On prime system setups like laptops where the screen is rendered with an integrated gpu while games/gpu intensive applications are usually offloaded to a dedicated gpu, it seems that the screenshare doesn't perform well.
In my case, whenever I try to screenshare a game, everyone says that the stream is awful and under 5 frames per second. My setup is a nvidia gtx 1660/intel igpu. I've tried running it on the igpu as well offloading it to the nvidia gpu. The nvidia gpu doesn't work at all as it will share a black screen, but the igpu offers extremely poor performance. I have no way of confirming if this is because of the prime setup easily or some other factor, but it's the only thing I can think of that could be causing the poor performance.
Additional context
No response