So i have a nativearray of size 3000*3000(fixed always the same size, i just change the content of it), i use persistent.
I don’t want to regenerate the nativearray at runtime every time i need one, since it causes lag spikes, and i use the container to store data for my map generation every time i generate a chunk.
So my question is;
Can i reuse the one i created at the beginning for the duration of the application, or i have to call deallocate always?, or is there another way to handle this?
The way i write to the same nativearray is using this [NativeDisableContainerSafetyRestriction] since the indexes never overlap, it doesn’t seems to have a problem, but I’m not a programmer i just learn as i go, so i don’t know if this is causing a leak or something else.