Hi!
In script we store data in angel script classes. Also we have array of classes.
Sample look like:
class StoreData
{
int data1, data2;
float data1, data2;
}
array<StoreData> data;
But big problem lie in fact that in memory 100 elements of array is just pointers. Actual data lies randomly in memory, so if we try to access to field data1 of 100 elements in loop we catch many many cache misses. Also we cannot binary save this array we must access to every field of every element in array.
So classes in array is big bottleneck.
Is it possible to avoid this issue?