Optimizations made for speed improvements on iPad

Reworked terrain code to optimize for iPad