You've already forked godot
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user