0

Dump assets and "initial" data before rendering starts

Now does preprocessing off of main() instead of in the dispatcher
initializer.
This commit is contained in:
Andrew Brown
2012-02-25 19:33:35 -05:00
parent d1f13cadc5
commit f48f0445d1
4 changed files with 39 additions and 8 deletions

View File

@@ -380,6 +380,12 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
tset = tileset.TileSet(rset, assetMrg, tex, tileSetOpts, tileset_dir)
tilesets.append(tset)
# Do tileset preprocessing here, before we start dispatching jobs
for ts in tilesets:
ts.do_preprocessing()
# Output initial static data and configuration
assetMrg.initialize(tilesets)
# multiprocessing dispatcher
if config['processes'] == 1: