Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit cec4299

Browse files
committed
update engine (tasks without priorities)
1 parent 96e86d3 commit cec4299

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

sources/generator.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ namespace unnatural
117117
base = meshGenerateBaseNavigation();
118118
if (configDebugSaveIntermediate)
119119
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));
122122
tn->wait();
123123
tc->wait();
124124
}
125125

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)); }
127127

128128
void wait() { taskRef->wait(); }
129129
};
@@ -173,7 +173,7 @@ namespace unnatural
173173
tasksRunBlocking("land chunk", Delegate<void(uint32)>().bind<LandProcessor, &LandProcessor::chunkEntry>(this), numeric_cast<uint32>(split.size()));
174174
}
175175

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)); }
177177

178178
void wait() { taskRef->wait(); }
179179
};
@@ -229,7 +229,7 @@ namespace unnatural
229229
tasksRunBlocking("water chunk", Delegate<void(uint32)>().bind<WaterProcessor, &WaterProcessor::chunkEntry>(this), numeric_cast<uint32>(split.size()));
230230
}
231231

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)); }
233233

234234
void wait() { taskRef->wait(); }
235235
};

0 commit comments

Comments
 (0)