diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 21:50:05 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 21:50:05 +0300 |
| commit | f50fb0dcae975cd964b7606cc7248d9e771abb2c (patch) | |
| tree | 6a3656b2f8ed66d4904e655a8d23bd64b6ea59c5 /docs/appendices/knowledge-boundaries.md | |
| parent | 574a1c02ba88b5205437cca3c0b0c29fe1afa945 (diff) | |
| download | fparkan-f50fb0dcae975cd964b7606cc7248d9e771abb2c.tar.xz fparkan-f50fb0dcae975cd964b7606cc7248d9e771abb2c.zip | |
fix(production): use Control energy budgets for factory work
Factories now run the recovered Control resource-budget pass on its own
randomized clock before Behavior task updates. Paid production reads its
current work-device E00 value, including the local power reserve and
allocation, instead of gating full speed on any clan generation.
The clock redraws jitter on every accepted frame and uses a separate Control
RNG. Initial phase, seed and ordering with other owners remain explicit
approximations. Budget failures preserve the table and are counted per owner.
Original DLL calls verify the budget callbacks, strict deadline, per-call RNG,
forced update and inactive baseline. A live class-3 factory executes the same
budget with the default 250 ms setting. Licensed regressions cover an empty
factory power reserve, subsequent generator capture, four completed paid
orders, the Behavior task deadline and scripted warbot/transport/builder births.
Workspace fmt/check/tests and release build pass. All 29 stock missions run
900 seconds without script or new budget stops. Stock mission 28 accepts and
completes a free and then a paid player order in the Vulkan-validation window.
Diffstat (limited to 'docs/appendices/knowledge-boundaries.md')
| -rw-r--r-- | docs/appendices/knowledge-boundaries.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/appendices/knowledge-boundaries.md b/docs/appendices/knowledge-boundaries.md index 4197a629..7fd88305 100644 --- a/docs/appendices/knowledge-boundaries.md +++ b/docs/appendices/knowledge-boundaries.md @@ -148,9 +148,12 @@ Behavior: самостоятельная защита до получения п `script_factory_clock_approx` считает допущенные шаги по клану и заводу. Таймер активного заказа восстановлен; фаза бездействующего владельца и общий порядок RNG с остальными объектами ещё открыты. -Платные заказы используют наличие энергии в клане, пока Control не передаёт -заводу его фактическую долю. Тайминг в оригинале, проверка выхода, конструктор +Платные заказы используют текущий `E00` после ресурсного бюджета Control. +Полный Control tick остальных владельцев, проверка выхода, конструктор и эффекты сборки открыты. +`factory_control_clock_approx` считает бюджетные шаги заводов; исходная фаза, +seed и общий порядок Control RNG открыты. `factory_control_budget_stub` считает +неподдержанные шаги по объектам и сохраняет первую причину отказа. `mission_patrol_approx` отмечает приказы варботам патрулировать точку из `Mission`. Маршрут и бой используют текущую модель AutoDemo. Темп, профиль, |
