mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Disable logic that seems to be leading to thread races
This commit is contained in:
parent
e5dba942ac
commit
e699941a39
@ -1203,7 +1203,7 @@ void AINodeStorage::calculateTownPortalTeleportations(std::vector<CGPathNode *>
|
|||||||
std::vector<const ChainActor *> actorsVector(actorsOfInitial.begin(), actorsOfInitial.end());
|
std::vector<const ChainActor *> actorsVector(actorsOfInitial.begin(), actorsOfInitial.end());
|
||||||
tbb::concurrent_vector<CGPathNode *> output;
|
tbb::concurrent_vector<CGPathNode *> output;
|
||||||
|
|
||||||
if(actorsVector.size() * initialNodes.size() > 1000)
|
if(false) //if (actorsVector.size() * initialNodes.size() > 1000)
|
||||||
{
|
{
|
||||||
tbb::parallel_for(tbb::blocked_range<size_t>(0, actorsVector.size()), [&](const tbb::blocked_range<size_t> & r)
|
tbb::parallel_for(tbb::blocked_range<size_t>(0, actorsVector.size()), [&](const tbb::blocked_range<size_t> & r)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user