0

Add reporting of scanning/indexing regions. Shortened paths being sent to the worker processes, and removed os.path.join from _apply_render_worldtiles's inner loop.

This commit is contained in:
Xon
2011-03-21 08:03:18 +08:00
parent 059492b3a1
commit c1b7b12592
2 changed files with 25 additions and 14 deletions

View File

@@ -70,9 +70,10 @@ class World(object):
def __init__(self, worlddir, useBiomeData=False,regionlist=None):
self.worlddir = worlddir
self.useBiomeData = useBiomeData
#find region files, or load the region list
#this also caches all the region file header info
logging.info("Scanning regions")
regionfiles = {}
regions = {}
for x, y, regionfile in self._iterate_regionfiles():
@@ -82,6 +83,7 @@ class World(object):
regionfiles[(x,y)] = (x,y,regionfile)
self.regionfiles = regionfiles
self.regions = regions
logging.debug("Done scanning regions")
# figure out chunk format is in use
# if not mcregion, error out early