Problem with pixels alignment in subviewport

Godot Version

v4.4.1.stable.flathub [49a5bc7b6]

Question

Hi :waving_hand:
I’m trying to create a scene to be able to have my level with low pixel resolution and having to possibility to have high resolution overlay on top of it (a bit like in Celeste if you know the game).
I had the idea to put the level in a subviewport the playing with its resolution, it works but:

  • I don’t understand (at all) why the parameters have to be this way to have the subviewer fully filling the window (like why putting the override value to 2560x1440 when my window is 1920x1080 ??)
  • I got the some pixels acting weird on player’s spawn and disappearing when moving (see the video)…

Here are some video/screenshots to show what I’m talking about:




For the pixels disappearing I wonder if changing the scale mode in display > window in project settings from fractional to integer would fix that.

It didn’t work :confused:
I think it’s because the pixel scaling is done thru the subviewport itself, my game window is already the good resolution.