qbsp: don't attempt to parallelize portal generation

This commit is contained in:
Eric Wasylishen 2022-06-18 11:46:40 -06:00
parent 214a2550f4
commit 501ccda2d1
2 changed files with 4 additions and 8 deletions

View File

@ -449,10 +449,8 @@ void MakeTreePortals_r(node_t *node, portalstats_t &stats)
MakeNodePortal(node, stats);
SplitNodePortals(node, stats);
tbb::task_group g;
g.run([&]() { MakeTreePortals_r(node->children[0], stats); });
g.run([&]() { MakeTreePortals_r(node->children[1], stats); });
g.wait();
MakeTreePortals_r(node->children[0], stats);
MakeTreePortals_r(node->children[1], stats);
}
/*

View File

@ -288,10 +288,8 @@ void CreateVisPortals_r(node_t *node, portalstats_t &stats)
MakeNodePortal(node, stats);
SplitNodePortals(node, stats);
tbb::task_group g;
g.run([&]() { CreateVisPortals_r(node->children[0], stats); });
g.run([&]() { CreateVisPortals_r(node->children[1], stats); });
g.wait();
CreateVisPortals_r(node->children[0], stats);
CreateVisPortals_r(node->children[1], stats);
}
/*