Originally posted by oiaohm
View Post
Announcement
Collapse
No announcement yet.
KDE Enjoys Improvement For Much Better NVIDIA Wayland GBM Experience
Collapse
X
-
Originally posted by bug77 View PostI'm not sure how a history lesson is relevant here. I'm just curious how this misplaced polling didn't cause performance issues before. The obvious explanation would be polling takes much longer on Nvidia hardware than on AMD or Intel, but that's also strange and I have no data to back that up.
Please note there are different bugs in gstreamer that poll wayland heavily as well and this was also causing issues as well with amd and intel gpus as noted in the kde issue/bug with the QT Wayland being the way it was.
So lack of optimisation on the Nvidia side of their GBM code and goof ups in the gstreamer code that exposed this problem with QtWayland. Of course this does not justify having the single thread for everything. Yes this very much the same as the single threaded input of X11 x.org server of old where it worked until you really pushed it then it does not. Multi threading this removes the problem or at least means you have to push a insane amount harder to cause the problem to appear.
- Likes 3
Comment
-
- Likes 1
Comment
-
Originally posted by meir View PostThe difference is huge, went from unusable to much faster than X11. I might actually start using it now
Also the Nvidia Wayland/KMS driver is still missing a ton of features: No night light/GPU gamma ramps, no VRR, no custom EDID, nvidia-settings functionality crippled on xwayland, no mailbox vsync mode for games etc...Last edited by aufkrawall; 20 January 2022, 10:17 AM.
Comment
-
Originally posted by oiaohm View Post
AMD and Intel on Linux are using mesa. Mesa has a lot of polling that bipassing the X11/Wayland protocol by using different features in drm/dri layer in the Linux/freebsd... kernel and also mesa uses a few different parts of the wayland protcol to say compositor notify me of change instead of polling the compositor all the time. Yes the way nvidia has implemented their GBM stuff does a lot more polling over Wayland protocol. So its not that that polling at the hardware is faster or slower its more how much polling you attempt to shove though the Wayland protocol if problem appears or not.
Please note there are different bugs in gstreamer that poll wayland heavily as well and this was also causing issues as well with amd and intel gpus as noted in the kde issue/bug with the QT Wayland being the way it was.
So lack of optimisation on the Nvidia side of their GBM code and goof ups in the gstreamer code that exposed this problem with QtWayland. Of course this does not justify having the single thread for everything. Yes this very much the same as the single threaded input of X11 x.org server of old where it worked until you really pushed it then it does not. Multi threading this removes the problem or at least means you have to push a insane amount harder to cause the problem to appear.
Comment
-
Originally posted by oiaohm View Post
AMD and Intel on Linux are using mesa. Mesa has a lot of polling that bipassing the X11/Wayland protocol by using different features in drm/dri layer in the Linux/freebsd... kernel and also mesa uses a few different parts of the wayland protcol to say compositor notify me of change instead of polling the compositor all the time. Yes the way nvidia has implemented their GBM stuff does a lot more polling over Wayland protocol. So its not that that polling at the hardware is faster or slower its more how much polling you attempt to shove though the Wayland protocol if problem appears or not.
Please note there are different bugs in gstreamer that poll wayland heavily as well and this was also causing issues as well with amd and intel gpus as noted in the kde issue/bug with the QT Wayland being the way it was.
So lack of optimisation on the Nvidia side of their GBM code and goof ups in the gstreamer code that exposed this problem with QtWayland. Of course this does not justify having the single thread for everything. Yes this very much the same as the single threaded input of X11 x.org server of old where it worked until you really pushed it then it does not. Multi threading this removes the problem or at least means you have to push a insane amount harder to cause the problem to appear.
I mean it would be curious to figure out why NVidia is sending more events and what type. If it's just sending the same events more often because of accuracy reasons then there is no point in blaming Nvidia for this and KWin even in the worst case can just drop events via sampling.
On the other hand if we are dealing with a case of duplicate events when it shouldn't be, that's a problem NVidia should fix.Last edited by mdedetrich; 20 January 2022, 06:39 PM.
- Likes 2
Comment
-
Originally posted by mdedetrich View PostI mean it would be curious to figure out why NVidia is sending more events and what type. If it's just sending the same events more often because of accuracy reasons then there is no point in blaming Nvidia for this and KWin even in the worst case can just drop events via sampling.
Originally posted by mdedetrich View PostOn the other hand if we are dealing with a case of duplicate events when it shouldn't be, that's a problem NVidia should fix.
Mesa has ways of querying information that does not depend on X11 or Wayland protocol that Nvidia does not have equals to yet.
Comment
Comment