I have an 3D multidimensional array, with sizes 20, 240 and 20.
var stuff = new Stuff[20, 240, 20]
Which order should I traverse the array for best performance?
Currently I'm doing: X, Z, Y in a nested for loop as this is what I've seem some other people use.
for (byte x = 0; x < 20; x++)
for (byte z = 0; z < 20; z++)
for (byte y = 0; y < 240; y++)