From 8ea77b96b26a0d64992c3b23214c74cf5bda30e5 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 28 Jan 2020 21:59:48 +0100 Subject: [PATCH] Mention 2D polygon limits and how to increase them in the documentation This closes #21793. --- doc/classes/Line2D.xml | 1 + doc/classes/Polygon2D.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/classes/Line2D.xml b/doc/classes/Line2D.xml index aa3739cf744..342683cc29b 100644 --- a/doc/classes/Line2D.xml +++ b/doc/classes/Line2D.xml @@ -5,6 +5,7 @@ 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]. diff --git a/doc/classes/Polygon2D.xml b/doc/classes/Polygon2D.xml index 3f6da2baf80..889c55780af 100644 --- a/doc/classes/Polygon2D.xml +++ b/doc/classes/Polygon2D.xml @@ -5,6 +5,7 @@ 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].