You are not logged in.

#1 2019-06-21 12:04:04

DarkWav
Member
Registered: 2019-06-14
Posts: 8

[SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

Hello everyone, I hope I could get help on a really mysteroious issue i notice since a few weeks ago
So, I tested a few games recently, and on Arch with KDE Plasma Desktop amost every game starts lagging after playing like 5 minutes (and don't switching the level).
However, when testing the exact same situation with GNOME shell (exact same system otherwise) it works perfectly fine and everything runs smoothly.
Manjaro Unstable / openSUSE Tumbleweed meanwhile with the exact same kernel and Plasma version work fine just like Arch with GNOME, whatsoever.
I only have one theory that makes sense so far (Although I can't confirm it by any means):
Arch may have done some patching on KWin or the NVidia Drivers which causes the issue.
For example, Arch does not have screen tearing with nvidia drivers since Plasma 5.16 while Manjaro Unstable and openSUSE Tumbleweed still do.
I also noticed terrible performance on the new kwin_wayland support for nvidia whilst Manjaro Unstable and openSUSE Tumbleweed did just fine.
I don't know if the comparisin with Manjaro/SUSE helps, but it might so I put it here.
Anyways, here's my inxi -Fx (system info) in case it helps:

System:    Host: PHANTOM Kernel: 5.1.12-arch1-1-ARCH x86_64 bits: 64 compiler: gcc v: 9.1.0 
           Desktop: KDE Plasma 5.16.1 Distro: Arch Linux 
Machine:   Type: Desktop System: Gigabyte product: Z390 AORUS MASTER v: N/A serial: <root required> 
           Mobo: Gigabyte model: Z390 AORUS MASTER-CF v: x.x serial: <root required> UEFI: American Megatrends 
           v: F8 date: 03/14/2019 
CPU:       Topology: 8-Core model: Intel Core i9-9900K bits: 64 type: MT MCP arch: Kaby Lake rev: C 
           L2 cache: 16.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 115232 
           Speed: 800 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 800 2: 800 3: 801 4: 800 5: 800 6: 800 
           7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 13: 800 14: 800 15: 800 16: 800 
Graphics:  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia v: 430.26 
           bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.5 driver: nvidia unloaded: modesetting,vesa 
           resolution: 1920x1200~60Hz 
           Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: NVIDIA GM204 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 01:00.1 
           Sound Server: ALSA v: k5.1.12-arch1-1-ARCH 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel bus ID: 00:14.3 
           IF: wlo1 state: down mac: ae:22:f5:bd:36:cb 
           Device-2: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: 3.2.6-k port: efa0 bus ID: 00:1f.6 
           IF: eno2 state: up speed: 1000 Mbps duplex: full mac: e0:d5:5e:e3:1c:9d 
Drives:    Local Storage: total: 1.36 TiB used: 74.81 GiB (5.4%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 EVO 1TB size: 931.51 GiB 
Partition: ID-1: / size: 250.00 GiB used: 55.71 GiB (22.3%) fs: btrfs dev: /dev/sdb2 
           ID-2: /home size: 669.32 GiB used: 19.10 GiB (2.9%) fs: ext4 dev: /dev/sdb3 
Sensors:   System Temperatures: cpu: 48.0 C mobo: N/A gpu: nvidia temp: 51 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:      Processes: 327 Uptime: 21m Memory: 15.60 GiB used: 2.32 GiB (14.9%) Init: systemd Compilers: 
           gcc: 9.1.0 Shell: bash v: 5.0.7 inxi: 3.0.34

Has anybody else an idea what could be the cause for my game slowdowns?
Is something similar happening to anyone else?
Do you think its related to KWin, the nvidia GPU driver or something completely different?
Thanks for you help in advance smile .

Last edited by DarkWav (2019-07-04 20:01:00)

Offline

#2 2019-06-21 12:34:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: [SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

There is a patch to help with tearing in the recently released KWin https://git.archlinux.org/svntogit/pack … e1a99d7cd7 and https://git.archlinux.org/svntogit/pack … c5a2259b53 but that is very recent and not a few weeks ago.

FWIW there's little hard data here to verify whether you really have the same exact situation, so I suggest you post

glxinfo -B #mesa-demos
glxinfo32 -B #lib32-mesa-demos
qdbus org.kde.KWin /KWin supportInformation

as well as terminal output of an affected game.

You might also want to post these outputs from a working system for comparison.

FWIW though I haven't yet verified this myself, from what I hear nvidia doesn't support accelerated xwayland contexts, so you likely will want to do any comparisons in a xorg sessions.

FWIW2 I can't reproduce any of this, though I am admittedly a little behind on updates, though I am on plasma 5.16

Last edited by V1del (2019-06-21 12:36:54)

Offline

#3 2019-06-21 13:55:50

DarkWav
Member
Registered: 2019-06-14
Posts: 8

Re: [SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

Thanks!:
inxi -Fx from working system (openSUSE Tumbleweed 20190617 / KDE Plasma 5.16.0)

System:    Host: PHOTON Kernel: 5.1.7-1-default x86_64 bits: 64 compiler: gcc v: 9.1.1 
           Desktop: KDE Plasma 5.16.0 Distro: openSUSE Tumbleweed 20190617 
Machine:   Type: Desktop System: Gigabyte product: Z390 AORUS MASTER v: N/A serial: <root required> 
           Mobo: Gigabyte model: Z390 AORUS MASTER-CF v: x.x serial: <root required> UEFI: American Megatrends 
           v: F8 date: 03/14/2019 
CPU:       Topology: 8-Core model: Intel Core i9-9900K bits: 64 type: MT MCP arch: Kaby Lake rev: C 
           L2 cache: 16.0 MiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 115200 
           Speed: 800 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 801 2: 800 3: 800 4: 800 5: 800 6: 800 
           7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 13: 800 14: 800 15: 800 16: 800 
Graphics:  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia v: 430.26 
           bus ID: 01:00.0 
           Display: x11 server: X.org 1.20.5 driver: nvidia resolution: <xdpyinfo missing> 
           OpenGL: renderer: GeForce GTX 970/PCIe/SSE2 v: 4.6.0 NVIDIA 430.26 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: NVIDIA GM204 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 01:00.1 
           Sound Server: ALSA v: k5.1.7-1-default 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel bus ID: 00:14.3 
           IF: wlo1 state: down mac: d6:cd:58:31:fb:e1 
           Device-2: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: 3.2.6-k port: efa0 bus ID: 00:1f.6 
           IF: eno2 state: up speed: 1000 Mbps duplex: full mac: e0:d5:5e:e3:1c:9d 
Drives:    Local Storage: total: 1.36 TiB used: 105.55 GiB (7.6%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 EVO 1TB size: 931.51 GiB 
Partition: ID-1: / size: 250.00 GiB used: 46.09 GiB (18.4%) fs: btrfs dev: /dev/sda2 
           ID-2: /home size: 210.88 GiB used: 59.45 GiB (28.2%) fs: ext4 dev: /dev/sda3 
           ID-3: /opt size: 250.00 GiB used: 46.09 GiB (18.4%) fs: btrfs dev: /dev/sda2 
           ID-4: /tmp size: 250.00 GiB used: 46.09 GiB (18.4%) fs: btrfs dev: /dev/sda2 
           ID-5: /var size: 250.00 GiB used: 46.09 GiB (18.4%) fs: btrfs dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 47.0 C mobo: N/A gpu: nvidia temp: 49 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:      Processes: 330 Uptime: 1h 38m Memory: 15.59 GiB used: 1.98 GiB (12.7%) Init: systemd runlevel: 5 
           Compilers: gcc: 9.1.1 clang: 8.0.0 Shell: bash v: 5.0.7 inxi: 3.0.32

glxinfo -B from working system (glxinfo32 and glxinfo are merged in openSUSE):

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 3664 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 430.26
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 430.26
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 430.26
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

qdbus-qt5 org.kde.KWin /KWin supportInformation from working system (on openSUSE the qdbus command is named qdbus-qt5):

KWin Support Information:
The following information should be used when requesting support on e.g. [url]https://forum.kde.org[/url].
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like [url]https://paste.kde.org[/url] instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.16.0
Qt Version: 5.12.3
Qt compile version: 5.12.3
XCB compile version: 1.13

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_EGL_STREAMS: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12005000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 4
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0,Regular
smallSpacing: 2
largeSpacing: 10

Platform
==========
Name: KWin::X11StandalonePlatform

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 99
glPlatformInterface: 1
windowsBlockCompositing: false

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: DP-1
Geometry: 0,0,1920x1200
Scale: 1
Refresh Rate: 59.9502


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 430.26
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 430.26
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.20.5
Linux kernel version: 5.1.7
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  yes

Loaded Effects:
---------------
zoom
thumbnailaside
kwin4_effect_translucency
kwin4_effect_squash
kwin4_effect_scale
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_logout
kwin4_effect_login
kwin4_effect_frozenapp
kwin4_effect_fadingpopups
kwin4_effect_eyeonscreen
kwin4_effect_dimscreen
kwin4_effect_dialogparent
slidingpopups
slideback
slide
screenshot
flipswitch
diminactive
desktopgrid
colorpicker
presentwindows
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
diminactive
blur
contrast

Effect Settings:
----------------
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

thumbnailaside:
maxWidth: 200
spacing: 10
opacity: 0.5
screen: -1

kwin4_effect_translucency:
isActiveFullScreenEffect: false

kwin4_effect_squash:
isActiveFullScreenEffect: false

kwin4_effect_scale:
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
isActiveFullScreenEffect: false

kwin4_effect_maximize:
isActiveFullScreenEffect: false

kwin4_effect_logout:
isActiveFullScreenEffect: false

kwin4_effect_login:
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
isActiveFullScreenEffect: false

kwin4_effect_fadingpopups:
isActiveFullScreenEffect: false

kwin4_effect_eyeonscreen:
isActiveFullScreenEffect: false

kwin4_effect_dimscreen:
isActiveFullScreenEffect: false

kwin4_effect_dialogparent:
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 150
slideOutDuration: 250

slideback:

slide:
duration: 500
horizontalGap: 45
verticalGap: 20
slideDocks: false
slideBackground: true

screenshot:

flipswitch:
tabBox: false
tabBoxAlternative: false
duration: 200
angle: 30
xPosition: 0.33000001311302185
yPosition: 1
windowTitle: true

diminactive:
dimStrength: 25
dimPanels: false
dimDesktop: false
dimKeepAbove: false
dimByGroup: true
dimFullScreen: true

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

colorpicker:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:

glxinfo -B from Arch Linux:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 3724 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 430.26
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 430.26
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 430.26
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

glxinfo32 -B from Arch Linux:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 3745 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 430.26
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 430.26
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 430.26
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

qdbus org.kde.KWin /KWin supportInformation from Arch Linux:

KWin Support Information:
The following information should be used when requesting support on e.g. https://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like https://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.16.1
Qt Version: 5.12.4
Qt compile version: 5.12.4
XCB compile version: 1.13.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_EGL_STREAMS: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12005000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0,Regular
smallSpacing: 2
largeSpacing: 10

Platform
==========
Name: KWin::X11StandalonePlatform

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 99
glPlatformInterface: 1
windowsBlockCompositing: false

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: DP-1
Geometry: 0,0,1920x1200
Scale: 1
Refresh Rate: 59.9502


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 430.26
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 430.26
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.20.5
Linux kernel version: 5.1.12
Direct rendering: Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  yes

Loaded Effects:
---------------
thumbnailaside
kwin4_effect_translucency
kwin4_effect_squash
kwin4_effect_scale
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_logout
lookingglass
kwin4_effect_login
kwin4_effect_frozenapp
kwin4_effect_fadingpopups
kwin4_effect_eyeonscreen
kwin4_effect_dimscreen
kwin4_effect_dialogparent
slidingpopups
slideback
slide
screenshot
flipswitch
diminactive
desktopgrid
colorpicker
presentwindows
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
diminactive
blur
contrast

Effect Settings:
----------------
thumbnailaside:
maxWidth: 200
spacing: 10
opacity: 0.5
screen: -1

kwin4_effect_translucency:
isActiveFullScreenEffect: false

kwin4_effect_squash:
isActiveFullScreenEffect: false

kwin4_effect_scale:
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
isActiveFullScreenEffect: false

kwin4_effect_maximize:
isActiveFullScreenEffect: false

kwin4_effect_logout:
isActiveFullScreenEffect: false

lookingglass:
initialRadius: 200

kwin4_effect_login:
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
isActiveFullScreenEffect: false

kwin4_effect_fadingpopups:
isActiveFullScreenEffect: false

kwin4_effect_eyeonscreen:
isActiveFullScreenEffect: false

kwin4_effect_dimscreen:
isActiveFullScreenEffect: false

kwin4_effect_dialogparent:
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 150
slideOutDuration: 250

slideback:

slide:
duration: 500
horizontalGap: 45
verticalGap: 20
slideDocks: false
slideBackground: true

screenshot:

flipswitch:
tabBox: false
tabBoxAlternative: false
duration: 200
angle: 30
xPosition: 0.33000001311302185
yPosition: 1
windowTitle: true

diminactive:
dimStrength: 25
dimPanels: false
dimDesktop: false
dimKeepAbove: false
dimByGroup: true
dimFullScreen: true

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

colorpicker:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:

Last edited by DarkWav (2019-06-21 14:02:09)

Offline

#4 2019-06-21 22:59:13

DarkWav
Member
Registered: 2019-06-14
Posts: 8

Re: [SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

Well, I rebuilded both kwin and qt5-base without the patches with makepkg with no success, games are still stuttering and screen tearing is still fixed out-of-the-box.

Last edited by DarkWav (2019-06-22 06:56:50)

Offline

#5 2019-07-04 12:50:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: [SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

I'm up to date now and can still not reproduce, can you give an example of a game? Also maybe you've set some differing environments

printenv #Though if a potential deviation here is set elsewhere it might be more guaranteed to instead do
tr '\0' '\n' < /proc/$PID/environ #Where PID is the pid of an affected program (or maybe more generally use plasmashell/kwin here)

from both systems

Offline

#6 2019-07-04 14:39:51

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

Painting blocks for vertical retrace:  yes

Did you try whether suspending the compositor (SHIFT+Alt+F12) mitigates the problem?

Online

#7 2019-07-04 20:00:25

DarkWav
Member
Registered: 2019-06-14
Posts: 8

Re: [SOLVED] Poor game performance with KDE/Kwin, GNOME shell works fine.

I have Investigated a little more in the problem and now have an explaination that makes sense.
When changing the KDE Compositor settings, I disabled "allow applications to block compositing" to prevent black artifacting with my nvidia card when using custom window decorations at compositor restart. (NVIDIA's fault, not arch's, shame on them that its even necessary)
That turned out to be a HUGE mistake!
It slows down games, on Arch this is more noticeable than on other distros.
On Arch, the lag in games caused by the option is very apparent while on other distro like openSUSE it is almost invisible, but can be made visible with a few tricks and indeed exists.
Example games:
Geometry Dash: seems fine on opensuse, lags noticeably on arch.
Terraria: Lags noticeable on both openSUSE and Arch.
Its probably some screen tearing patch's fault, but for desktop compositing those patches are perfectly fine.
Overall I'll just have to accept KWin's desktop compositing is terrible for gaming, and use a theme that doesn't cause stupid artifacting with my GPU.
Thanks for everyone's efforts, I really appreciate it. Checking the Compositor did the Trick. big_smile

Offline

Board footer

Powered by FluxBB