I managed to convert my world data to flat array was easier than I thought -thanks to this thread too. can't really tell if it's faster than before, didn't benchmark