home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b994aab
)
Raise bar for multiprocessing, after some performance testing.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 10 Dec 2020 21:56:25 +0000
(22:56 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 10 Dec 2020 21:56:25 +0000
(22:56 +0100)
plomrogue/game.py
patch
|
blob
|
history
diff --git
a/plomrogue/game.py
b/plomrogue/game.py
index 31cae6f2008f510a73046628bef1ee797233af2e..d390e94d95e87a23c4cdddbeffb79119849d605f 100755
(executable)
--- a/
plomrogue/game.py
+++ b/
plomrogue/game.py
@@
-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])