From 501ccda2d1a3278d2fe30634167870a59163f1dc Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 18 Jun 2022 11:46:40 -0600 Subject: [PATCH] qbsp: don't attempt to parallelize portal generation --- qbsp/portals.cc | 6 ++---- qbsp/prtfile.cc | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/qbsp/portals.cc b/qbsp/portals.cc index 1dd06292..19d46bfb 100644 --- a/qbsp/portals.cc +++ b/qbsp/portals.cc @@ -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); } /* diff --git a/qbsp/prtfile.cc b/qbsp/prtfile.cc index ee1afab1..cd24cc4d 100644 --- a/qbsp/prtfile.cc +++ b/qbsp/prtfile.cc @@ -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); } /*