Bug 460490

Summary: Freezes in windows with 3d graphics created via wayland api with scaling enabled
Product: [Plasma] kwin Reporter: Intbyte <5656ltl>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 5.26.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: drm_info output
qdbus org.kde.KWin /KWin supportInformation output
journalctl --boot 0 | grep kwin_wayland_drm output

Description Intbyte 2022-10-15 15:41:50 UTC
SUMMARY
Freezes in windows with 3d graphics created via wayland api with scaling enabled. If you use x11 then there is no such problem


STEPS TO REPRODUCE
1.  Enable interface scaling by 20% or more
2.  Open a window created using the wayland api with 3d graphics and MSAA enabled


OBSERVED RESULT
lagging window rendering

EXPECTED RESULT
Smooth rendering at 60 fps

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Manjaro unstable. Linux 5.19. KDE Plasma 5.26
(available in About System)
KDE Plasma Version: 5.26
KDE Frameworks Version:  5.99
Qt Version: 5.15.6
Comment 1 Nate Graham 2022-10-16 00:25:22 UTC
Thanks for the bug report! Can you attach the output of:
- drm_info (you may need to get the package for it from AUR)
- qdbus org.kde.KWin /KWin supportInformation

Also please add
> QT_LOGGING_RULES="kwin_*.debug=true"
to your /etc/environment file, reboot, reproduce the problem again and upload the
output of
> journalctl --boot 0 | grep kwin_wayland_drm

Thanks!
Comment 2 Intbyte 2022-10-16 11:52:42 UTC
Created attachment 152890 [details]
drm_info output
Comment 3 Intbyte 2022-10-16 11:53:35 UTC
Created attachment 152891 [details]
qdbus org.kde.KWin /KWin supportInformation output
Comment 4 Intbyte 2022-10-16 11:55:01 UTC
Created attachment 152892 [details]
journalctl --boot 0 | grep kwin_wayland_drm output
Comment 5 Nate Graham 2022-10-17 18:30:24 UTC
Thank for the information!
Comment 6 Intbyte 2022-10-19 09:56:50 UTC
(In reply to Nate Graham from comment #5)
> Thank for the information!

I am happy to help!
Comment 7 David Edmundson 2022-10-19 10:44:41 UTC
Lagging or freezing? 
You've said both, can you go into more detail to clarify.
Comment 8 Intbyte 2022-10-20 13:54:31 UTC
(In reply to David Edmundson from comment #7)
> Lagging or freezing? 
> You've said both, can you go into more detail to clarify.

Frames in the window are rendered with lags. Sometimes the window freezes completely. If you run a window created using x11 via xwayland, then there is no such problem. I used glfw to create the window