You are not logged in.

#1 2013-09-04 22:19:51

filk
Member
Registered: 2013-02-15
Posts: 15

Screen Tearing in games

Sorry in advance for the awkward setup I suppose. I use arch and and xmonad with an nvidia GPU and the official NVidia drivers. I want to do more of my gaming in Linux, but right now whenever I launch a game (mainly from Steam) I get pretty severe and constant screen tearing.

The main game I'm testing with is Crusader Kings 2. I am mainly running it in windowed mode - fullscreen mode seems to sometimes just show me a black screen.

I have gone into the Nvidia settings and made sure that the display I'm playing on is the primary display. I'm not sure what next steps to take.

Offline

#2 2013-09-05 00:18:18

Jean3799
Member
Registered: 2013-06-21
Posts: 31

Re: Screen Tearing in games

try to enable vsync . look in the options somewhere.

Offline

#3 2013-09-05 07:47:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Screen Tearing in games

Are you using a compositor? If so, try killing it.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2013-09-06 00:13:49

filk
Member
Registered: 2013-02-15
Posts: 15

Re: Screen Tearing in games

I ended up disabling "Sync to VFrame" in the nvidia-settings. For whatever reason, it seems like that was slightly de-synced with my actual display, so I got a tear that slowly moved from top to bottom of my screen. With it disabled, there is obviously still tearing but it's minimal and not consistently noticeable. It's an OK solution for now.

Offline

#5 2013-09-06 01:17:38

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Screen Tearing in games

filk wrote:

a tear that slowly moved from top to bottom of my screen

Have you tried e.g. ExactModeTimingsDVI

Offline

#6 2013-09-06 12:55:59

filk
Member
Registered: 2013-02-15
Posts: 15

Re: Screen Tearing in games

brebs wrote:
filk wrote:

a tear that slowly moved from top to bottom of my screen

Have you tried e.g. ExactModeTimingsDVI

I tried it just now, and it didn't help. This did tip me off to the xorg.conf file, and now I believe I may know the problem.

I have two monitors hooked up, that "nvidia-settings -q RefreshRate" reports as 59.89Hz and 59.95Hz. From what I can find online, Nvidia is treating these both as one big virtual screen (a hack) so that displays can be changed without restarting X, and assigning the virtual VSync rate of 60Hz, which causes the slowly moving screen tear.

I'm not clear how to fix this. I would by happy if the whole virtual screen was synced to the refresh rate of the primary monitor, because I don't care if the second tears. I would also be [maybe even more] happy to have each display set as a separate X screen and require an X restart on switch (this seems like an odd limitation, are there any plans to fix this in Wayland or the Canonical alternative?), if that would fix the problem and allow nvidia-settings to detect the correct refresh rate. What's my best bet for defeating that tear?

Offline

Board footer

Powered by FluxBB