Camera Movement Glitches Sprites - 2D Rendering

Hi guys,
I’ve got a virtual camera following my player. The player itself is smooth but the “not moving” sprites of the level are briefly acting weird and go back to normal, back and forth.
https://i.ibb.co/GWXHrPr/sprite-moving-artefact.jpg
If I pause the game the problem instantly disappear.

Quick notes : even with a simple camera parented to my player the problem occurs.

I’m not making a pixel art game so I haven’t been paying to much attention at screen size and pixel ratio, I really s*ck at it !

Any help would be greatly appreciated :slight_smile:

I presume that’s a picture you’ve taken of the screen and not a screengrab from without the OS? If so then isn’t that just Screen tearing because you’re not using VSync?

It is indeed a picture taken with my phone :wink:

This is gonna be NEWBIE as hell but this is the first time I hear about Vsync ^^
Is this a unity setting I don’t know of ?

VSync is part of display hardware such as monitors and more specifically a feature of the graphics cards that drive them. I’m not going to explain it because a Google search will give you a lot of information on it.

In Unity you’ll find it in the Quality Settings under VSync Count.

1 Like

Thanks Melv,
I’m gonna check that up and hopefully it will fix it :slight_smile:

1 Like

Hi ! Vsync was already check in quality settings, I tried and changed it runtime to see if it could help without any success.
And now I find A LOT of people complaining about this problem :confused:

https://www.youtube.com/watch?v=lavqz5EqDEY

https://discussions.unity.com/t/701785

Thank you for your help :slight_smile:

I’m not sure then, it’s certainly not related to 2D features but is an editor thing. Could you temporarily try a later Unity version to see if it’s fixed?

Ok so “funny” things.
The tearing itself is editor related : it is not there on OSX build play BUT there is still a “multiple edges” effect :confused:


As you can see there are no hard slices in this build footage, but clear double edges.

I’ve got Application.targetFrameRate = 60; called on start, I tried to activate vsync without any luck, same without.

To recap, I’ve got 2 problems apparently unrelated,

  • tearing in editor is a “well known bug” on OSX mac pro ^^’ (very annoying but not in final product)
  • double edges that I really need to get rid off

I would test in an older Unity version but I really suck at versioning… I installed Unity 2018 in my unity hub, tried to open a copied version of the project but I’ve got SO MANY errors and downgrade issues that if feels a bit out hands right now :frowning:

Thank you for your help Melv, really appreciate :slight_smile: