Apply route node limit before waiting for geometry (#114)
Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
@@ -418,11 +418,11 @@ impl Route {
|
|||||||
}
|
}
|
||||||
// Let pending footprint queries settle before opening a broad, less useful frontier.
|
// Let pending footprint queries settle before opening a broad, less useful frontier.
|
||||||
// Otherwise three trucks can saturate the shared world budget without ever moving.
|
// Otherwise three trucks can saturate the shared world budget without ever moving.
|
||||||
if !self.parked.is_empty() { break; }
|
|
||||||
if self.expanded >= MAX_NODES {
|
if self.expanded >= MAX_NODES {
|
||||||
self.settle(now);
|
self.settle(now);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if !self.parked.is_empty() { break; }
|
||||||
}
|
}
|
||||||
if self.expanded > before {
|
if self.expanded > before {
|
||||||
self.stuck_since = None;
|
self.stuck_since = None;
|
||||||
|
|||||||
Reference in New Issue
Block a user