Game is not scaled up with ´canvas_items´ stretch mode enabled

Godot Version

4.6.2

Question

In my project settings I have set the Viewport width/height to 1920x1080 to work on my game. I wanted to test how it would look when stretched to different resolutions, so I set the stretch mode to canvas_items (as described in the multiple resolutions documentation).

When starting the game in windowed mode the game gets scaled down correctly if I reduce the window size. However if I increase the window size above what I set in the project settings the game does not get stretched further.

Based on the above documentation page and the videos I’ve seen, it seems that the game should get stretched with these settings, even if the window size gets larger than the resolution set in the project settings. If I start the game in exclusive fullscreen it gets stretched just fine. Any idea why the game doesn’t stretch any further?

I’ve made a small test project to show what I mean:

Recording 2026-04-15 213034

I also tested this with the project from this video, where lower resolutions are stretched just fine when the window size is increased. But when I try the project myself I encounter the same issue, that downscaling seems to work, but upscaling does not.

Would this fix your problem?

3 Likes

Yes, that did the trick, thank you!

I’ve never seen the embedding functionality mentioned specifically in any videos/tutorials, it seems quite new, but it’s also why the project from the video I linked broke. It seems that the window size can’t be changed from a script when running the game embedded.