Is it the upper limit of array elements or a bug

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By po2009n

Opencv is used to make a set of about 10000 coordinates. Copy it to the godot editor and it will be blocked directly. Gradually, it will be reduced to about 1000 coordinates before normal operation. 2000 coordinates are also blocked. Is there a limit

:bust_in_silhouette: Reply From: Ninfur

There isn’t any strict limit as far as I’m aware, other than memory usage. It will happily take millions of elements.

var array = []
for i in range(10000000):
	array.append(Vector3(i, i, i))
print(array.size()) # 10000000

Copy the coordinate array to the editor as a variable, and you will be pleasantly surprised

po2009n | 2022-12-07 01:53