fix world wrapping
improve tile pruning