Godot messing up sprite grid lines when resizing window

Godot Version

4.4

Question

I am using already finished grid sprites under node2d (below)


When i resize window (tried: strectch_mode: disabled, canvas and viewport, aspect: tried keep and expand)


Is this a bug or intended? Grid lines are 1 pixel maybe renderer can’t handle it?

What node are you using?

node2d

yeah seems likely like a rendering problem when they are just 1 pixel apart

So what to do? Do i need to draw grids by myself (draw_line)?

What are you hoping to do with this grid?

You could try to use a TextureRect this also has certain stretch-modes. Not sure if it will fix it though