How can I fix the sub-pixel vibration issue?

Hi, I would like to understand how to solve the sub-pixel issue: that movement where the character seems to vibrate while being moved. I’m using the Top Down behavior and a 1280x720 resolution; the player is 192x192. I would like to understand how to fix this issue. I read that it might be caused by incorrect decimal values. How should the character be created to avoid these sub-pixel problems?

Lot of discussion about this here: Parallax pixel art not smooth 640x360

Have you tried messing with the global settings, “Round pixels when rendering” etc?

1 Like

192x192 cannot evenly go into any modern resolution. (720/192 = 3.75, 1080/192 = 5.62)

If your game resources cannot evenly divide into the displayed resolution, it will always have subpixel rendering of some kind. There is no fix for this because of pure math.

Your easiest option: change to a resolution that is easily scaled into other resoiutions (e.g. 320x180 or 640x360)

You can still keep a 1:1 aspect ratio if you want so long as it is an even divisor, so 180x180 will work without subpixel rendering, as it’ll scale properly into 720p/1080p

1 Like