mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Screen tearing

Open Grafu opened this issue 5 years ago • 31 comments

Describe the bug

Screen keeps tearing while playing MTA.

To reproduce

Move camera around.

Expected behaviour

Screen should not have break lines when rendered. Those break lines messes up screen when moving camera.

Screenshots

Screenshotting does not capture the tear, so uploading what screen tearing looks like. image

Version

MTA:SA Server v1.5.6-release-14489 Multi Theft Auto v1.5.6-release-1466

Windows 10

Grafu avatar Oct 09 '18 14:10 Grafu

Are you sure that this is not releated to your OS / Hardware ? By rendered - do you mean the default rendering behaviour or are you talking about dx(Create/Update)ScreenSource ?

  • LuX

ghost avatar Oct 09 '18 18:10 ghost

Default behavior. I am not sure if it's related to hardware or OS. I have friends who are also complaining about this.

Grafu avatar Oct 09 '18 21:10 Grafu

As far as I know, MTA/GTA don't deal with VSync or buffering to face this problem by default, so I'd say it's normal for it to happen depending on what the graphics driver decides to do by default. What happens if VSync or triple buffering are forced on the graphics driver settings? A quick Google search shows how to do that.

AlexTMjugador avatar Oct 10 '18 14:10 AlexTMjugador

GTA is an old game, MTA fixes some GTA issues and improves upon its engine, but things like this were a goal of MTA:EIR which unfortunately never got finished.

I'm not too sure about what you mean, but can you please confirm the issue also appears in GTA? If so, then this is unfortunately invalid as we do not focus on deep renderer issues that EIR planned to fix in GTA.

Dutchman101 avatar Oct 10 '18 14:10 Dutchman101

We still accept these sort of issues, it's just likely that it will take us a long time to fix them (or impossible).

Eir does not influence what we cannot do in MTA, it instead shows us what we could one day introduce.

qaisjp avatar Oct 10 '18 15:10 qaisjp

GSync and Freesync have been created to prevent this. However i feel that GSync doesnt really work perfectly because i still see some tearing.

Einheit-101 avatar Oct 10 '18 18:10 Einheit-101

The tearing is still present with VSync and Trible Buffering enabled in Nvidia control panel for GTA SA.

Grafu avatar Oct 11 '18 06:10 Grafu

Using full screen standard? Does the tear appear every frame in the same place?

ccw808 avatar Oct 11 '18 16:10 ccw808

Using full screen standard. Tearing appears in different places.

Grafu avatar Oct 11 '18 17:10 Grafu

I must be honest, today I was running MTA on my laptop (Nvidia) and noticed a type of tearing that I had never seen before. I started up a recorder and suddenly it was way harder to reproduce, even in the same location and after closing the recording app. Maybe certain (lightning) circumstances played a role, as I didnt see it after that point. It happened on the surface of a customly placed GTA speaker box object, the edges teared into the plain surroundings.

I am just saying that maybe a recent change has somehow caused what you're describing, as I saw something (very odd) that may be the thing you're describing for a first time. If you have a solid reproduction for your perceived issue, then please take to a physical recording unit as you said that screenshots or similar wouldn't capture the distortion.

@Grafu, you also said: "I have friends who are also complaining about this." > was this recent, is there a clear surge in this type of complaints that you heard? If so, can you ask each one of them approximately when it started to happen? (and answer this for yourself)

Dutchman101 avatar Oct 12 '18 00:10 Dutchman101

image

Grafu avatar Oct 12 '18 11:10 Grafu

Will be hard to trace the source in the future if we don't know when the tearing started to occur. If someone with tearing could say an approximate date or test some old builds and see which change approximately caused it?

patrikjuvonen avatar Nov 29 '18 00:11 patrikjuvonen

I don't recall seeing any screen tearing in the past (And am now experiencing it myself with the latest update 'I haven't updated for a while because I've just been on my private Dev server most of the time') so some update in Early October did it.

Wolfee-J avatar Nov 29 '18 02:11 Wolfee-J

I wouldn't be that sure about October. I am experiencing this issue quite a long time, maybe some earlier Windows 10 update could affect this. + The tearing appears in similar place most of the time (around 25% from the screen top).

Grafu avatar Nov 30 '18 16:11 Grafu

I have experienced frame tearing in other games but I have somehow never once in 10 years of playing MTA, ever seen a single frame get teared. Weird that it happens to some people, but not me.

ArranTuna avatar Dec 18 '18 22:12 ArranTuna

For those who are having the issue, what graphics card do you have? (I have Nvidia GTX 950)

Wolfee-J avatar Dec 19 '18 01:12 Wolfee-J

I got this problem and friend too.

Here is all info:

MTA Client Version: Multi Theft Auto v1.5.6-release-16068.3

MTA Diag: Mine: https://pastebin.mtasa.com/691300845 Friend's: MTADiag-Log-2018-12-17_20-47-31.txt

Kenix157 avatar Dec 19 '18 07:12 Kenix157

Nvidia GeForce 960M GTX

Grafu avatar Dec 19 '18 07:12 Grafu

Nvidia GeForce 840M

Kenix157 avatar Dec 19 '18 07:12 Kenix157

Maybe everyone should attach a mta diag log? For developers it's will be useful.

Kenix157 avatar Dec 19 '18 07:12 Kenix157

i too have this issue, i have intergrated graphics card, changed to window mode fixed this problem

CrosRoad95 avatar Dec 19 '18 11:12 CrosRoad95

@CrosRoad95 What type of graphics card do you have (Brand)

Wolfee-J avatar Dec 19 '18 19:12 Wolfee-J

intel(R) HD Graphics 4600

CrosRoad95 avatar Dec 19 '18 19:12 CrosRoad95

MTA doesn't work correctly if i change to different window modes.

Kenix157 avatar Dec 21 '18 14:12 Kenix157

grafik

I can reproduce this in full screen and windowed mode and Intel HD graphics with a view angle of 45° down and moving sideways in map editor. The Build 16266 does not fix this.

This issue never appears on my nvidia GTX 660.

Edit: I tested the same with a MTA 1.3.0 - I get the same screen tearing issues. The OS is Windows 7 Ultimate (x64), GPU is Intel HD 2000 (very old)

StifflersMom avatar Jan 11 '19 04:01 StifflersMom

@patrikjuvonen Question was asked due to the time this issue started to happen, frame limiter is what is causing this issue in the first place and 'Weird Camera Movement' was fixed by reverting a change to the frame limiter.

Wolfee-J avatar Jan 12 '19 15:01 Wolfee-J

The current code, which includes the fix to 'Weird Camera Movement', uses the new frame limiter, it's not reverted.

botder avatar Jan 12 '19 15:01 botder

@CodyJL The discussion went off-topic since the original issue was about the instability of the camera, which was resolved. It is fine to reference that issue as it had to do with other commits done at the same time partially relevant to that issue too (to make sure we don't break it again), but it is important to separate the discussion around this issue from that one since it wouldn't make a difference there anymore.

Anyway, let's go back on topic...

patrikjuvonen avatar Jan 12 '19 15:01 patrikjuvonen

To keep it overviewable (about the "Screen tearing" issue):

  • Not everyone is affected, it seems to head towards the Nvidia/Intel HD GPU spectrum and also specific devices.

  • People that are affected have tested builds prior to any FPS limiter changes (including the earliest one from October 2018) and also with MTA 1.3.0; the behaviour is the same and they are still affected. I understand that @CodyJL doesn't know about that, because he's not in Discord or slack development channel. There has been more discussion and tests such as the one I mentioned in there, for clarity it should also be posted here which is what I'm doing right now.

Overall, what it looks like, is that graphics drivers for specific Nvidia or Intel HD GPU's matter, and the risk OS is involved (Windows 10 major build update) is also present, as has previously been determined. I would request further testing by having affected users downgrade to an pre-Windows 1803 build and using graphics drivers dated from earlier than the build's release.

If we cannot get a breakthrough by doing this, then I'm afraid this issue has to be closed because it's not shown to be a result of changes in MTA.

Dutchman101 avatar Jan 12 '19 16:01 Dutchman101

Seems to be basically fixed by fixing #1905?

lopezloo avatar Jul 13 '22 02:07 lopezloo