Vertical and horizontal lines when moving in the game

Godot Version

4.3

Question

i have vertical and horizontal lines when moving player in the game.
You can only see it if you look closely, and it only happens in full screen, if I put exclusive full screen it doesn’t happen
look the video:
click here to watch the video

If you don’t see them, I recommend putting 1080p60 and putting the video slower, near where I put the cursor it happens

I have tried activating v-sync or adaptive v-sync and changing things in the project settings.

The lines appear due to the different pixel sizes. This happens because of mismatch between the resolution of pixels and the screen. If your screen width is 1920 and your pixelart is 768, this means that each pixel of the sprite (texel) will account for 2.5 pixels of the screen. And some texels will be 2 pixels in size, others 3

Make sure that the screen size is completely divisible by the pixel size of the art.

With a screen size of 1920x1080, the pixel art should be 960x540 (x2 smaller), 640x360 (x3 smaller), 480x270 (x4 smaller), etc.

Thank you for answering me.
I understand what you’re trying to say, but I don’t understand why it keeps happening to me, even though I have that kind of resolution (640x360) in the project and my game camera has the x1 y1 zoom (unmodified).
And why does it only happen in full screen and not in exclusive full screen?
My computer screen has this resolution:
Screenshot resolucion
and my godot project, this:

I didn’t read the post well. Apparently, this is a bug. In fullscreen mode, thin lines appear around the edges of the screen, which reduce the size of the viewport. This bug appears in 4.4, but I couldn’t repeat it in 4.5.dev4.

the solution may be to use only exclusive fullscreen or wait for the 4.5 release and migrate the project to it.

1 Like

Okay, thanks a lot for the help.

I think I’ll leave it as fullscreen exclusive and wait for 4.5.:heart:

1 Like