improved terrain generation performance