home · contact · privacy
Raise bar for multiprocessing, after some performance testing.
[plomrogue2] / plomrogue / game.py
index 31cae6f2008f510a73046628bef1ee797233af2e..d390e94d95e87a23c4cdddbeffb79119849d605f 100755 (executable)
@@ -249,7 +249,7 @@ class Game(GameBase):
             player_fovs += [player._fov]
             player_fov_ids += [player.id_]
         new_fovs = []
-        single_core_until = 8  # since multiprocess has its own overhead
+        single_core_until = 16  # since multiprocess has its own overhead
         if len(player_fovs) > single_core_until:
             pool = multiprocessing.Pool()
             new_fovs = pool.map(FovMap.init_terrain, [fov for fov in player_fovs])