@@ -117,13 +117,13 @@ namespace unnatural
117
117
base = meshGenerateBaseNavigation ();
118
118
if (configDebugSaveIntermediate)
119
119
meshSaveDebug (base, pathJoin (debugDirectory, " navMeshBase.glb" ));
120
- Holder<AsyncTask> tn = tasksRunAsync (" navmesh" , Delegate<void (uint32)>().bind <NavmeshProcessor, &NavmeshProcessor::taskNavmesh>(this ), 1 );
121
- Holder<AsyncTask> tc = tasksRunAsync (" collider" , Delegate<void (uint32)>().bind <NavmeshProcessor, &NavmeshProcessor::taskCollider>(this ), 1 );
120
+ Holder<AsyncTask> tn = tasksRunAsync (" navmesh" , Delegate<void (uint32)>().bind <NavmeshProcessor, &NavmeshProcessor::taskNavmesh>(this ));
121
+ Holder<AsyncTask> tc = tasksRunAsync (" collider" , Delegate<void (uint32)>().bind <NavmeshProcessor, &NavmeshProcessor::taskCollider>(this ));
122
122
tn->wait ();
123
123
tc->wait ();
124
124
}
125
125
126
- NavmeshProcessor () { taskRef = tasksRunAsync (" navmesh" , Delegate<void (uint32)>().bind <NavmeshProcessor, &NavmeshProcessor::processEntry>(this ), 1 , 30 ); }
126
+ NavmeshProcessor () { taskRef = tasksRunAsync (" navmesh" , Delegate<void (uint32)>().bind <NavmeshProcessor, &NavmeshProcessor::processEntry>(this )); }
127
127
128
128
void wait () { taskRef->wait (); }
129
129
};
@@ -173,7 +173,7 @@ namespace unnatural
173
173
tasksRunBlocking (" land chunk" , Delegate<void (uint32)>().bind <LandProcessor, &LandProcessor::chunkEntry>(this ), numeric_cast<uint32>(split.size ()));
174
174
}
175
175
176
- LandProcessor () { taskRef = tasksRunAsync (" land" , Delegate<void (uint32)>().bind <LandProcessor, &LandProcessor::processEntry>(this ), 1 , 20 ); }
176
+ LandProcessor () { taskRef = tasksRunAsync (" land" , Delegate<void (uint32)>().bind <LandProcessor, &LandProcessor::processEntry>(this )); }
177
177
178
178
void wait () { taskRef->wait (); }
179
179
};
@@ -229,7 +229,7 @@ namespace unnatural
229
229
tasksRunBlocking (" water chunk" , Delegate<void (uint32)>().bind <WaterProcessor, &WaterProcessor::chunkEntry>(this ), numeric_cast<uint32>(split.size ()));
230
230
}
231
231
232
- WaterProcessor () { taskRef = tasksRunAsync (" water" , Delegate<void (uint32)>().bind <WaterProcessor, &WaterProcessor::processEntry>(this ), 1 , 10 ); }
232
+ WaterProcessor () { taskRef = tasksRunAsync (" water" , Delegate<void (uint32)>().bind <WaterProcessor, &WaterProcessor::processEntry>(this )); }
233
233
234
234
void wait () { taskRef->wait (); }
235
235
};
0 commit comments