1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add performance note to Array.resize()

This commit is contained in:
MewPurPur
2023-11-09 16:17:18 +02:00
parent b733901e9e
commit 80b636069a
10 changed files with 10 additions and 9 deletions

View File

@@ -397,7 +397,7 @@
<return type="int" />
<param index="0" name="new_size" type="int" />
<description>
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. Calling [method resize] once and assigning the new values is faster than adding new elements one by one.
</description>
</method>
<method name="reverse">