Bug 492643 - Intel Kaby Lake: High GPU usage and lagging of video, web browsers and plasma animation with kwin_wayland
Summary: Intel Kaby Lake: High GPU usage and lagging of video, web browsers and plasma...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: performance (show other bugs)
Version: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2024-09-04 10:58 UTC by Maxim Starodubcev
Modified: 2024-09-17 19:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kwin_wayland is idle (26.35 KB, image/png)
2024-09-04 10:58 UTC, Maxim Starodubcev
Details
kwin_x11 in is idle (25.98 KB, image/png)
2024-09-04 10:59 UTC, Maxim Starodubcev
Details
kwin_waylan is load (wobbly windows) (26.48 KB, image/png)
2024-09-04 11:00 UTC, Maxim Starodubcev
Details
kwin_x11 is load (wobbly windows) (26.13 KB, image/png)
2024-09-04 11:00 UTC, Maxim Starodubcev
Details
kwin_waylan is load (mpv play SD video) (25.60 KB, image/png)
2024-09-04 11:01 UTC, Maxim Starodubcev
Details
kwin_x11 is load (mpv play SD video) (25.58 KB, image/png)
2024-09-04 11:01 UTC, Maxim Starodubcev
Details
journalctl -a | grep wayland (4.64 KB, text/x-log)
2024-09-04 11:02 UTC, Maxim Starodubcev
Details
dmesg (69.31 KB, text/x-log)
2024-09-04 11:03 UTC, Maxim Starodubcev
Details
wayland-info (11.41 KB, text/plain)
2024-09-04 11:26 UTC, Maxim Starodubcev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Starodubcev 2024-09-04 10:58:37 UTC
Created attachment 173309 [details]
kwin_wayland is idle

When I use kwin_wayland,  GPU consumption is much greater than with kwin_x11. This can be seen in the screenshots of intel_gpu_top which are attached to the tiket. This leads to the fact that even watching SD videos is impossible because picture is not smoothed. There is also no smoothness in the animation of the interface and web browsers.
I also tryed to set KWIN_DRM_DISABLE_TRIPLE_BUFFERING=1 and this add some smoothness, but not resolve a problem, and GPU consumption is still high.

STEPS TO REPRODUCE
Run kde on intel kabylake graphic with wayland

OBSERVED RESULT
High GPU usage and lagging of video, web browsers and plasma animation

EXPECTED RESULT
The same uses of resources and the smoothness of work as on x11

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland

HARDWARE VERSIONS
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 19.3 ГиБ of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: LENOVO
Product Name: 80XL
System Version: Lenovo ideapad 320-15IKB


ADDITIONAL INFORMATION

GLXINFO:
  glxinfo | /usr/bin/grep render
  direct rendering: Yes
      GLX_MESA_copy_sub_buffer, GLX_MESA_gl_interop, GLX_MESA_query_renderer, 
      GLX_MESA_gl_interop, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
  Extended renderer info (GLX_MESA_query_renderer):
  OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)
      GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
      GL_INTEL_blackhole_render, GL_INTEL_conservative_rasterization, 
      GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp, 
      GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
      GL_INTEL_blackhole_render, GL_INTEL_performance_query, 
      GL_NV_compute_shader_derivatives, GL_NV_conditional_render, 
      GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control, 
      GL_EXT_texture_view, GL_EXT_unpack_subimage, GL_INTEL_blackhole_render, 
      GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments, 
      GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

LSPCI:
  lspci | /usr/bin/grep -E 'VGA|3D'
  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
  01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
Comment 1 Maxim Starodubcev 2024-09-04 10:59:20 UTC
Created attachment 173310 [details]
kwin_x11 in is idle
Comment 2 Maxim Starodubcev 2024-09-04 11:00:15 UTC
Created attachment 173311 [details]
kwin_waylan is load (wobbly windows)
Comment 3 Maxim Starodubcev 2024-09-04 11:00:34 UTC
Created attachment 173312 [details]
kwin_x11 is load (wobbly windows)
Comment 4 Maxim Starodubcev 2024-09-04 11:01:02 UTC
Created attachment 173313 [details]
kwin_waylan is load (mpv play SD video)
Comment 5 Maxim Starodubcev 2024-09-04 11:01:26 UTC
Created attachment 173314 [details]
kwin_x11 is load (mpv play SD video)
Comment 6 Maxim Starodubcev 2024-09-04 11:02:45 UTC
Created attachment 173315 [details]
journalctl -a | grep wayland

journalctl -a | grep wayland
Comment 7 Maxim Starodubcev 2024-09-04 11:03:21 UTC
Created attachment 173316 [details]
dmesg

dmesg
Comment 8 Maxim Starodubcev 2024-09-04 11:09:41 UTC
At the same time, if I launch Weston, the consumption of GPU in the idle mode is as in kwin_x11 and even less when playing the video.
Comment 9 Maxim Starodubcev 2024-09-04 11:26:47 UTC
Created attachment 173318 [details]
wayland-info