From 77d95e33718ae5ce755f3ffaeb24833f19279d27 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 27 Nov 2019 16:32:59 +0100 Subject: [PATCH] Document the `ViewportContainer.stretch_shrink` property --- doc/classes/ViewportContainer.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/classes/ViewportContainer.xml b/doc/classes/ViewportContainer.xml index e4c60919094..2f1bc5d799e 100644 --- a/doc/classes/ViewportContainer.xml +++ b/doc/classes/ViewportContainer.xml @@ -15,6 +15,9 @@ If [code]true[/code], the viewport will be scaled to the control's size. + Divides the viewport's effective resolution by this value while preserving its scale. This can be used to speed up rendering. + For example, a 1280×720 viewport with [member stretch_shrink] set to [code]2[/code] will be rendered at 640×360 while occupying the same size in the container. + [b]Note:[/b] [member stretch] must be [code]true[/code] for this property to work.