#How to handle big arrays
1 messages · Page 1 of 1 (latest)
I know you use Vector2 inside your Array, have you tried this: https://docs.godotengine.org/en/stable/classes/class_packedvector2array.html#class-packedvector2array
First line sounds very relevant: "An array specifically designed to hold Vector2. Packs data tightly, so it saves memory for large array sizes."
A packed array of Vector2 s. Description: An array specifically designed to hold Vector2. Packs data tightly, so it saves memory for large array sizes. Differences between packed arrays, typed arra...
Sorry for confusion I forgot to type I am trying to do that in shader editor.
Right now I am packing arrays to texture but it is feels like not right way do that
Iirc that's like, basically what a lookup table is, innit?
if you have time can you give me minimal example lookup table in godots shader language or just send tutorial any refrence link
I don't have any experience/resources in doing so unfortunately, was just saying that what you're doing with packing things to a texture is a type of lookup table
since you mentioned it feels like it's not the right way to do so
I think the normal way to do it is to turn it into a texture, which I think can be up to 16384x16384 pixels in size
(which is 268,435,456 elements)