summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-11-27 21:41:13 +0100
committerGitHub <noreply@github.com>2019-11-27 21:41:13 +0100
commit9e3fb2b1e868f660f625590ae27dc52b27dcf935 (patch)
tree9e18ddfa4e96a8e1db191f9be80d983fc84c4a2b
parent1af9701caacc0739f4817b0bf39f46ff6d90a146 (diff)
parent77d95e33718ae5ce755f3ffaeb24833f19279d27 (diff)
Merge pull request #33945 from Calinou/doc-viewportcontainer-stretch
Document the `ViewportContainer.stretch_shrink` property
-rw-r--r--doc/classes/ViewportContainer.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/ViewportContainer.xml b/doc/classes/ViewportContainer.xml
index e4c6091909..2f1bc5d799 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.
</member>
<member name="stretch_shrink" type="int" setter="set_stretch_shrink" getter="get_stretch_shrink" default="1">
+ 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.
</member>
</members>
<constants>