qbsp: don't attempt to parallelize portal generation
This commit is contained in:
parent
214a2550f4
commit
501ccda2d1
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue