Wayland and Xwayland mouse pointer stuttering #113684

Closed
opened 2023-10-13 17:08:01 +02:00 by Andrea Monzini · 10 comments

System Information
Operating system: Linux-6.5.6-100.fc37.x86_64-x86_64-with-glibc2.36 64 Bits, X11 UI
Graphics card: AMD Radeon RX 580 Series (polaris10, LLVM 15.0.7, DRM 3.54, 6.5.6-100.fc37.x86_64) AMD 4.6 (Core Profile) Mesa 23.0.3

DE: GNOME 43.9

Blender Version
Broken: ( Wayland ) version: 3.6.4, branch: blender-v3.6-release, commit date: 2023-09-25 13:24, hash: 21bfc5e7fe
Broken: ( Xwayland ) version: 3.6.4, branch: blender-v3.6-release, commit date: 2023-09-25 13:24, hash: 21bfc5e7fe
Broken: ( Wayland ) version: version: 3.6.5 Release Candidate, branch: blender-v3.6-release, commit date: 2023-10-12 12:38, hash: 521a68323c
Broken: ( Xwayland ) version: version: 3.6.5 Release Candidate, branch: blender-v3.6-release, commit date: 2023-10-12 12:38, hash: 521a68323c
Broken: ( Wayland ) version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-10-12 18:54, hash: 1c4b2ad17f
Broken: ( xWayland ) version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-10-12 18:54, hash: 1c4b2ad17f,

Worked: X11 /X.Org version: 3.6.4, branch: blender-v3.6-release, commit date: 2023-09-25 13:24, hash: 21bfc5e7fe

Short description of error
Mouse pointer stutters a lot on high GPU usage in Wayland and Xwayland ( WAYLAND_DISPLAY="" )
I recorder a video ( posted the gif ) of the Xwayland ( in the about panel you see X11 using Xwayland in a Wayland session) running Blender with WAYLAND_DISPLAY="" showing also "RadeonTop" ( same problem with Wayland ).
I tried also Blender in Full Screen, same problem.
No problem with X11.

Exact steps for others to reproduce the error
With similar system ( AMDGPU - Mesa - GNOME ) try to test any demo file with EEVEE and high GPU load.
During high GPU load, try to test and check the mouse pointer speed.
To underline the problem in the video i duplicated the demo assets and pressed "Play" to stress the GPU, then i tried to rotate the scene.

With Distro and Desktop environment switching to Wayland it could be a problem for a smooth pointer input experience in Blender ( even with Xwayland ).

Edit: maybe related to this issue:

https://gitlab.gnome.org/GNOME/mutter/-/issues/1833

wayaland_stuttering

System Information Operating system: Linux-6.5.6-100.fc37.x86_64-x86_64-with-glibc2.36 64 Bits, X11 UI Graphics card: AMD Radeon RX 580 Series (polaris10, LLVM 15.0.7, DRM 3.54, 6.5.6-100.fc37.x86_64) AMD 4.6 (Core Profile) Mesa 23.0.3 DE: GNOME 43.9 Blender Version Broken: ( Wayland ) version: 3.6.4, branch: blender-v3.6-release, commit date: 2023-09-25 13:24, hash: 21bfc5e7fe3f Broken: ( Xwayland ) version: 3.6.4, branch: blender-v3.6-release, commit date: 2023-09-25 13:24, hash: 21bfc5e7fe3f Broken: ( Wayland ) version: version: 3.6.5 Release Candidate, branch: blender-v3.6-release, commit date: 2023-10-12 12:38, hash: 521a68323c53 Broken: ( Xwayland ) version: version: 3.6.5 Release Candidate, branch: blender-v3.6-release, commit date: 2023-10-12 12:38, hash: 521a68323c53 Broken: ( Wayland ) version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-10-12 18:54, hash: 1c4b2ad17f5f Broken: ( xWayland ) version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-10-12 18:54, hash: 1c4b2ad17f5f, Worked: X11 /X.Org version: 3.6.4, branch: blender-v3.6-release, commit date: 2023-09-25 13:24, hash: 21bfc5e7fe3f Short description of error Mouse pointer stutters a lot on high GPU usage in Wayland and Xwayland ( WAYLAND_DISPLAY="" ) I recorder a video ( posted the gif ) of the Xwayland ( in the about panel you see X11 using Xwayland in a Wayland session) running Blender with WAYLAND_DISPLAY="" showing also "RadeonTop" ( same problem with Wayland ). I tried also Blender in Full Screen, same problem. No problem with X11. Exact steps for others to reproduce the error With similar system ( AMDGPU - Mesa - GNOME ) try to test any demo file with EEVEE and high GPU load. During high GPU load, try to test and check the mouse pointer speed. To underline the problem in the video i duplicated the demo assets and pressed "Play" to stress the GPU, then i tried to rotate the scene. With Distro and Desktop environment switching to Wayland it could be a problem for a smooth pointer input experience in Blender ( even with Xwayland ). Edit: maybe related to this issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/1833 ![wayaland_stuttering](https://projects.blender.org/attachments/3afa254e-73c2-4353-9a09-1b47e111dccb)
Andrea Monzini added the
Severity
Normal
Status
Needs Triage
Type
Report
labels 2023-10-13 17:08:01 +02:00
Iliya Katushenock added the
Interest
Wayland
label 2023-10-13 17:11:36 +02:00

It seems likely this issue isn't a bug in Blender.

  • Does this bug happen when the GPU is busy while the cursor is in a non-Blender window? If you play an animation with high FPS for e.g. does the cursor lag in other applications.

  • Does this happen with other Wayland compositors? (SWAY / RIVER / KDE or Weston).

It seems likely this issue isn't a bug in Blender. - Does this bug happen when the GPU is busy while the cursor is in a non-Blender window? If you play an animation with high FPS for e.g. does the cursor lag in other applications. - Does this happen with other Wayland compositors? (SWAY / RIVER / KDE or Weston).
Author

It seems likely this issue isn't a bug in Blender.

  • Does this bug happen when the GPU is busy while the cursor is in a non-Blender window? If you play an animation with high FPS for e.g. does the cursor lag in other applications.

If i stress the GPU without Blender running, for example opening multiple instances of 0A.D. game and glmark2 ( 100 % GPU usage ) the pointer is not lagging/stuttering.
While if Blender is running and with GPU 100 load, the lag is present on other non-Blender windows ( and all the system ).
In my limited experience in Wayland the bug is present only while Blender is running with 100% GPU load.
i prepared a gif in a Wayland session with 100% GPU load without Blender running ( no stuttering ).

gpuload.gif

  • Does this happen with other Wayland compositors? (SWAY / RIVER / KDE or Weston).

Not tried other compositors for now but i can try to test other Distro, Desktop Environments and Compositors under Wayland as soon as possible.
Thank you.

> It seems likely this issue isn't a bug in Blender. > > - Does this bug happen when the GPU is busy while the cursor is in a non-Blender window? If you play an animation with high FPS for e.g. does the cursor lag in other applications. If i stress the GPU without Blender running, for example opening multiple instances of [0A.D.](https://play0ad.com/) game and [glmark2](https://github.com/glmark2/glmark2) ( 100 % GPU usage ) the pointer is not lagging/stuttering. While if Blender is running and with GPU 100 load, the lag is present on other non-Blender windows ( and all the system ). In my limited experience in Wayland the bug is present only while Blender is running with 100% GPU load. i prepared a gif in a Wayland session with 100% GPU load without Blender running ( no stuttering ). ![gpuload.gif](/attachments/196c0c6c-d996-4662-ab0e-0d10c71d1fac) > - Does this happen with other Wayland compositors? (SWAY / RIVER / KDE or Weston). Not tried other compositors for now but i can try to test other Distro, Desktop Environments and Compositors under Wayland as soon as possible. Thank you.
Author

I tried other tests:
After the GPU 100% load with other applications i tried to run Blender and i discovered that the pointer lag/stuttering is present only during calculations of the Material Preview / EEVEE ( in Wayalnd / Xwayland).
The pointer lag/stuttering is very evident during high load calculations of EEVEE under Wayland ( like in the first gif i posted ).
This stuttering bug is not present in X11 and EEVEE.

eevee.gif

I tried other tests: After the GPU 100% load with other applications i tried to run Blender and i discovered that the pointer lag/stuttering is present only during calculations of the Material Preview / EEVEE ( in Wayalnd / Xwayland). The pointer lag/stuttering is very evident during high load calculations of EEVEE under Wayland ( like in the first gif i posted ). This stuttering bug is not present in X11 and EEVEE. ![eevee.gif](/attachments/80d9b2b8-4884-4cb8-9403-078c1adca703)
3.0 MiB

Since this happens both in Wayland & XWayland, the chance of this being a bug in Blender seem quite low, most likely this is https://gitlab.gnome.org/GNOME/mutter/-/issues/1833

Since this happens both in Wayland & XWayland, the chance of this being a bug in Blender seem quite low, most likely this is https://gitlab.gnome.org/GNOME/mutter/-/issues/1833
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-10-17 00:38:19 +02:00
Author

Hello, just to notice that the problem is not solved even with GNOME/Mutter 5.3 Linux 6.7.4, Mesa 23.3.4.

I experienced this problem only when Blender is running with 100% GPU load under Wayland while i do not experience the same problem with other 3D apps/games running with 100% GPU load under Wayland.

I still can use X.Org for now.

Hello, just to notice that the problem is not solved even with GNOME/Mutter 5.3 Linux 6.7.4, Mesa 23.3.4. I experienced this problem only when Blender is running with 100% GPU load under Wayland while i do not experience the same problem with other 3D apps/games running with 100% GPU load under Wayland. I still can use X.Org for now.
Author

There is a similar issue but in the #119190 case the problem seems related to Wayland only.

I gently ask to consider keep one of the two issues opened as the problem is not solved and it is not clear that it is only a compositor problem.
I experience the stuttering in Blender only and not in other 3D apps during heavy GPU loads.

Thank you.

There is a similar issue but in the #119190 case the problem seems related to Wayland only. I gently ask to consider keep one of the two issues opened as the problem is not solved and it is not clear that it is only a compositor problem. I experience the stuttering in Blender only and not in other 3D apps during heavy GPU loads. Thank you.
Author

Hello, i am testing Wayland again and with other 3D App like Godot 4.3 when the GPU is under 100 load ( multiple Godot instances opened with global illumination scene ), the cursor does not stutter in Wayland, it is super smooth.

As next version of GNOME will be ( for what understand ) without X11, could you reconsider this issue ( still present in latest Fedora 40 Gnome 46 )?

I have this problem only with Blender under Wayland and 100% GPU load.
If it is a Wayland only compositor problem could be please explain why it happen only with Blender ? ( in my experience of course ).

Thank you.

Hello, i am testing Wayland again and with other 3D App like Godot 4.3 when the GPU is under 100 load ( multiple Godot instances opened with global illumination scene ), the cursor does not stutter in Wayland, it is super smooth. As next version of GNOME will be ( for what understand ) without X11, could you reconsider this issue ( still present in latest Fedora 40 Gnome 46 )? I have this problem only with Blender under Wayland and 100% GPU load. If it is a Wayland only compositor problem could be please explain why it happen only with Blender ? ( in my experience of course ). Thank you.
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2024-08-27 19:53:44 +02:00

Re-reading the report:

  • From what I can tell the cursor stutter issue is likely caused either:
    • Software cursor.
    • The compositor behavior when Blender grabbing the cursor.
    • A bug in the graphics card driver.
  • Unless there is a mistake in Blender's code or Blender is misusing the API, it's unlikely we're able to resolve the bug - unless cursor grabbing is disabled entirely.
  • This problem is not severe - as in, Blender is still usable.

Given the following points, I don't think there is much Blender can do to resolve this - it's especially difficult when others can't redo the bug. So while I see the issue remains for you, I don't think it's practical for it to be treated as a bug in Blender.

Re-reading the report: - From what I can tell the cursor stutter issue is likely caused either: - Software cursor. - The compositor behavior when Blender grabbing the cursor. - A bug in the graphics card driver. - Unless there is a mistake in Blender's code or Blender is misusing the API, it's unlikely we're able to resolve the bug - unless cursor grabbing is disabled entirely. - This problem is not severe - as in, Blender is still usable. Given the following points, I don't think there is much Blender can do to resolve this - it's especially difficult when others can't redo the bug. So while I see the issue remains for you, I don't think it's practical for it to be treated as a bug in Blender.
Author

Thank you for the answer and re visiting the report.
Only to point that in my use case and perspective the bug is severe because in heavy EEVEE scenes/renders Blender is NOT USABLE with pointer keep stuttering heavily and the system hang heavily ( i am forced to use X11 if i want work with Blender ).

I still do not understand why i see this bug only with Blender under 100% GPU loads and not with other 3D softwate like Godot engine.

I hope to be the only one with this bug but i suspect that when X11 will be deprecated in next main distros we will see more similar bug reports.
But also i doubt that i am only one who experience this bug in Blender as i read feedback in other forum/website but people probably does not report because they can still use X11.

I agree that if the bug is not reproducible is not solvable.

Anyway i will change hardware soon ( with Mesa GPU like AMD and/or Intel ) and i will test it with different Wayland compositors (distros with next DE GNOME 47, KDE, Sway and even Cosmic ).
If i will resolve the bug with different Hardware/DE/Compositor i will report here too.

Thank you

Thank you for the answer and re visiting the report. Only to point that in my use case and perspective the bug is severe because in heavy EEVEE scenes/renders Blender is NOT USABLE with pointer keep stuttering heavily and the system hang heavily ( i am forced to use X11 if i want work with Blender ). I still do not understand why i see this bug only with Blender under 100% GPU loads and not with other 3D softwate like Godot engine. I hope to be the only one with this bug but i suspect that when X11 will be deprecated in next main distros we will see more similar bug reports. But also i doubt that i am only one who experience this bug in Blender as i read feedback in other forum/website but people probably does not report because they can still use X11. I agree that if the bug is not reproducible is not solvable. Anyway i will change hardware soon ( with Mesa GPU like AMD and/or Intel ) and i will test it with different Wayland compositors (distros with next DE GNOME 47, KDE, Sway and even Cosmic ). If i will resolve the bug with different Hardware/DE/Compositor i will report here too. Thank you
Jesse Yurkovich added
Status
Archived
and removed
Status
Needs Triage
labels 2024-09-01 23:41:57 +02:00

According to the GNOME issue, Mutter 47 (GNOME47) should improve this situation.

According to the GNOME issue, Mutter 47 (GNOME47) should improve this situation.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113684
No description provided.