You are not logged in.
I have diagonal screen tearing with my GTX 1050 Ti when playing any game, but only in the upper-right corner of the screen/window. It's also accompanied with horizontal tearing at times. It happens with RetroArch, it happens with Steam games, it doesn't happen with Discord or Firefox. Doesn't matter if the game is windowed or fullscreen. This has been happening for months, and I can't find any results about my particular issue online.
X11, KDE, linux 6.7.5-arch1-1, nvidia 545.29.06-19. Force full composition pipeline is enabled, and I disable the compositor while playing games for performance (the compositor does hide the tearing, at the cost of a consistent framerate).
Any ideas? Hopefully this isn't just an "NVIDIA bad" situation, I'd like to figure out a solution to this.
Last edited by FlitPix (2024-03-01 19:52:31)
Offline
It happens with RetroArch, it happens with Steam games
Both Vulkan and OpenGL?
at the cost of a consistent framerate
You specifically do NOT want V-Sync / constant framerate?
Post here your nVIDIA's Xorg .conf and ~/.nvidia-settings-rc.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
Both Vulkan and OpenGL?
I don't know how to check whether a game uses Vulkan/OpenGL/DirectX. PCGamingWiki doesn't seem to show anything for this particular game.
You specifically do NOT want V-Sync / constant framerate?
I want both a consistent framerate / V-Sync and no screen tearing. Using KDE's compositor solves the screen tearing issue, but tanks performance - even on the desktop, smooth scrolling and moving windows around is sometimes visually choppy. Disabling the compositor solves the performance issue, but causes this annoying screen tearing in games. Right now I disable the compositor so I can bare minimum play the game at 60 FPS since that's more important, but I would like to also solve the screen tearing.
/etc/X11/xorg.conf:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection/etc/X11/xorg.conf.d/20-nvidia.conf:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1050 Ti"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
Option "ForceFullCompositionPipeline" "on"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
EndSection~/.nvidia-settings-rc:
#
# /home/username/.nvidia-settings-rc
#
# Configuration file for nvidia-settings - the NVIDIA Settings utility
# Generated on Thu Feb 22 11:20:21 2024
#
# ConfigProperties:
RcFileLocale = C
DisplayStatusBar = Yes
SliderTextEntries = Yes
IncludeDisplayNameInConfigFile = No
UpdateRulesOnProfileNameChange = Yes
Timer = Memory_Used_(GPU_0),Yes,3000
Timer = Thermal_Monitor_(GPU_0),Yes,1000
Timer = PowerMizer_Monitor_(GPU_0),Yes,1000
# Attributes:
0/SyncToVBlank=1
0/LogAniso=0
0/FSAA=0
0/TextureClamping=1
0/FXAA=0
0/AllowFlipping=0
0/FSAAAppControlled=1
0/LogAnisoAppControlled=1
0/OpenGLImageSettings=2
0/FSAAAppEnhanced=0
0/ShowGraphicsVisualIndicator=0
[DPY:DVI-D-0]/Dithering=0
[DPY:DVI-D-0]/DitheringMode=0
[DPY:DVI-D-0]/DitheringDepth=0
[DPY:DVI-D-0]/ColorSpace=0
[DPY:DVI-D-0]/ColorRange=0
[DPY:DVI-D-0]/SynchronousPaletteUpdates=0
[DPY:HDMI-0]/RedBrightness=0.000000
[DPY:HDMI-0]/GreenBrightness=0.000000
[DPY:HDMI-0]/BlueBrightness=0.000000
[DPY:HDMI-0]/RedContrast=0.000000
[DPY:HDMI-0]/GreenContrast=0.000000
[DPY:HDMI-0]/BlueContrast=0.000000
[DPY:HDMI-0]/RedGamma=1.000000
[DPY:HDMI-0]/GreenGamma=1.000000
[DPY:HDMI-0]/BlueGamma=1.000000
[DPY:HDMI-0]/Dithering=0
[DPY:HDMI-0]/DitheringMode=0
[DPY:HDMI-0]/DitheringDepth=0
[DPY:HDMI-0]/DigitalVibrance=0
[DPY:HDMI-0]/ColorSpace=0
[DPY:HDMI-0]/ColorRange=0
[DPY:HDMI-0]/SynchronousPaletteUpdates=0
[DPY:DP-0]/Dithering=0
[DPY:HDMI-0]/DitheringMode=0
[DPY:HDMI-0]/DitheringDepth=0
[DPY:HDMI-0]/DigitalVibrance=0
[DPY:HDMI-0]/ColorSpace=0
[DPY:HDMI-0]/ColorRange=0
[DPY:HDMI-0]/SynchronousPaletteUpdates=0
[DPY:DP-0]/Dithering=0
[DPY:DP-0]/DitheringMode=0
[DPY:DP-0]/DitheringDepth=0
[DPY:DP-0]/ColorSpace=0
[DPY:DP-0]/ColorRange=0
[DPY:DP-0]/SynchronousPaletteUpdates=0
[DPY:DP-1]/Dithering=0
[DPY:DP-1]/DitheringMode=0
[DPY:DP-1]/DitheringDepth=0
[DPY:DP-1]/ColorSpace=0
[DPY:DP-1]/ColorRange=0
[DPY:DP-1]/SynchronousPaletteUpdates=0
[GPU:0]/GPUPowerMizerMode=2
[GPU:0]/GPULogoBrightness=100In KDE's Compositor settings, I have "Allow applications to block compositing" disabled, and "Latency" set to "Prefer lower latency" (though none of the options appear to do anything to solve this issue). V-Sync is enabled in-game.
Offline
You probably also generally do not want the FullCompositionPipeline (potentially also not triple buffering, but I'd surmise the composition pipeline to be the main factor here) since that will generally lead to fight because you're essentially compositing multiple times (nvidia compositing pipeline + game vsync and/or kwin vsync) , which is likely why you're seeing an artefact in the first place.
FWIW having all of these goals you might also be interested in a wayland session, both plasma 6 and the current nvidia-beta driver have quite a few improvements for the nvidia case, and funky xwayland clients can apparently be mostly fixed via https://aur.archlinux.org/packages/xorg … t-sync-git.
Random personal anecdote, I wanted a fancy desktop on another screen while playing games without tearing or stuttery perf drops, which while seemingly unsolvable on xorg, just worked on wayland -- though for that usecase I only have an amdgpu at hand and there are some issues still with nvidia, things are definitely looking like they are getting fixed up in the near future
Last edited by V1del (2024-02-23 16:31:57)
Offline
Oh wow, just tried Wayland, and yeah everything seems so much better. All the issues I had before are just gone now. We'll see how it fares with other games and apps, but I'm quite happy with this for now.
Offline