Adapted more debugging with Tracy, characters update
This commit is contained in:
@@ -598,10 +598,10 @@ CharacterAIModule::CharacterAIModule(flecs::world &ecs)
|
||||
npcs,
|
||||
&ai]() {
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(
|
||||
ecs_mutex);
|
||||
ZoneScopedN(
|
||||
"UpdateBlackboards::Thread");
|
||||
std::lock_guard<std::mutex> lock(
|
||||
ecs_mutex);
|
||||
|
||||
updateBlackboards(town, alist, npcs,
|
||||
ai);
|
||||
@@ -766,6 +766,7 @@ static std::deque<PlanTask> plan_tasks;
|
||||
void CharacterAIModule::buildPlans(flecs::entity town, const TownNPCs &npcs,
|
||||
TownAI &ai)
|
||||
{
|
||||
ZoneScopedN("buildPlans");
|
||||
OgreAssert(town.is_valid(), "Bad town entity");
|
||||
std::lock_guard<std::mutex> lock(*ai.mutex);
|
||||
auto planner = ai.planner;
|
||||
|
||||
Reference in New Issue
Block a user