411 REFERENCE · Wikibooks
Guide to the Godot game engine/Platform specific
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Servers (singletons) Optimisation
When gaming was young, games were rarely designed for multiple systems at once. When that started, people had to check every screen resolution worked. When phones started coming in many different shapes and sizes, this soon became impractical, and even impossible for most of us. Godot has a way to combat this, of course. But screen size is not your only problem.
Stretching the screen
Go to ProjectSettings, and find Display -> Window. Go to the bottom of the area on the right, and under "Stretch", there are 3 settings: Mode, Aspect and Shrink.
+ModesModeAboutdisabledDeafult. Does not stretch the screen.2dOnly works on 2D, ignores 3D. Streches the 2D world.viewportAlways works. Stretches the picture.
+AspectValueAboutignoreSimply stretches or shrinks the screen.keepThe image scales, but the aspect ratio never changes. May create black bars around the edge of the screen.keep_widthHeight changes freely, width stays same size as the image scales. Aspect ratio never changes.keep_heightWidth changes freely, height stays same size as the image scales. Aspect ratio never changes.expandScales image to show at minimum of the camera size. May reveal more of the game world vertically if the window is shrank horizontally and vice versa.
As the Shrink value gets bigger, the screen resolution goes down.
The ProjectSetting Rendering -> Quality -> Dynamic Fonts -> Use Oversampling only works when using "Keep Height"/"Keep Width"/"Expand" aspect ratios, and does not work with the "Viewport" Stretch mode.
<noinclude>Servers (singletons) Optimisation
25%