Merge pull request #35675 from Calinou/doc-2d-polygon-limits

Mention 2D polygon limits and how to increase them in the documentation
This commit is contained in:
Rémi Verschelde 2020-01-28 22:30:23 +01:00 committed by GitHub
commit 6a5ffb8f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
</brief_description> </brief_description>
<description> <description>
A line through several points in 2D space. A line through several points in 2D space.
[b]Note:[/b] By default, Godot can only draw up to 4,096 polygon points at a time. To increase this limit, open the Project Settings and increase [member ProjectSettings.rendering/limits/buffers/canvas_polygon_buffer_size_kb] and [member ProjectSettings.rendering/limits/buffers/canvas_polygon_index_buffer_size_kb].
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>

View File

@ -5,6 +5,7 @@
</brief_description> </brief_description>
<description> <description>
A Polygon2D is defined by a set of points. Each point is connected to the next, with the final point being connected to the first, resulting in a closed polygon. Polygon2Ds can be filled with color (solid or gradient) or filled with a given texture. A Polygon2D is defined by a set of points. Each point is connected to the next, with the final point being connected to the first, resulting in a closed polygon. Polygon2Ds can be filled with color (solid or gradient) or filled with a given texture.
[b]Note:[/b] By default, Godot can only draw up to 4,096 polygon points at a time. To increase this limit, open the Project Settings and increase [member ProjectSettings.rendering/limits/buffers/canvas_polygon_buffer_size_kb] and [member ProjectSettings.rendering/limits/buffers/canvas_polygon_index_buffer_size_kb].
</description> </description>
<tutorials> <tutorials>
</tutorials> </tutorials>