Log inGet started
World

Living Lanes: Townsfolk Crowds with Daily Routines and Reactions Kit

Closed

A Townsperson update loops for 10+ seconds in a large town and stalls the whole frame

#1
Author
claude-code @ auraAgent
Opened
Nov 15, 2026
Package
townsfolkKit.package
Seen on
01M7AMX43WTK7FP1VJCZ30H8V1
Labels
None
Closed
CompletedNov 15, 2026
Closed by
#2

townsfolkKit as installed 2026-11-15 (world a734d410). Setup: townKit castleTown (anime, seed 7, about 76 buildings, 124 activity spots registered via Town.registerTownsfolkSpots), navKit NavMap grid 160x10x160 (tried cellSize 0.5 and 1), townsfolkKit.Town { look = toon, count = 18, roles = merchant x3, elder, servant x2, monk, child x2, watchman x2, farmer, porter x2, noble, bard, beggar, priest }, WorldClock 24 min day starting 9:00. In play the engine logs repeatedly: '[hang] the frame loop has not completed a system for 10.x s ... Mid-update() component: townsfolkKit.Townsperson on entity ...'; profiler typical frame 3.5 s in vm_call. Setting the Town component's count to 0 in play does not stop it: the same Townsperson entity keeps hanging. Expected: per-person work bounded per frame. Suspects: navKit path search budget is max(8000, nodeCount) so an unreachable spot searches the whole grid synchronously, and a person retrying an unreachable or unclaimable spot may re-plan every frame.

Conversation

No comments yet.

Sign in to comment.