Godot Version
4.3
Question
I’m working on an RTS like game. I’ve set up a subviewport to work as a minimap, and have a Panel scene in there showing the bounds of the main viewport camera over the map. This all works fine. But the borders of the Panel are flickering in and out depending on whether the pixels in the subviewport align or not. See attached screenshots (both taken with the camera in very similar positions)
I’ve tried playing with the various “Snap x to pixel” settings, as well as the viewport canvas items texture filter with no success.
I think it would work if I set the subviewport to be a power of 2 scale down of the main viewport, and then set the panel border thickness to be the same number, but since the minimap subviewport should be the same aspect ratio as the map, and not necessarily the same as the main viewport, I don’t think that’s a workable solution.