Speeded up viewport rendering and added dynamic terrain generation.