Document the upsides and downsides of packed arrays versus typed arrays
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
</brief_description>
|
||||
<description>
|
||||
An array specifically designed to hold [Vector3]. Packs data tightly, so it saves memory for large array sizes.
|
||||
[b]Differences between packed arrays, typed arrays, and untyped arrays:[/b] Packed arrays are generally faster to iterate on and modify compared to a typed array of the same type (e.g. [PackedVector3Array] versus [code]Array[Vector3][/code]). Also, packed arrays consume less memory. As a downside, packed arrays are less flexible as they don't offer as many convenience methods such as [method Array.map]. Typed arrays are in turn faster to iterate on and modify than untyped arrays.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
||||
Reference in New Issue
Block a user