AutoId review fixes: login pack sweep, refused sends kept, flight tag after send
- The login pack was never appraised: at login the PWD snapshot is cold, so ownership reads miss, the item classified Unknown and was skipped at 2 s. Unknown now waits (WaitSnapshot) until the snapshot has entries or 120 s pass, and a one-shot sweep runs at LoginCompleteAtMs + 30 s (and again after a hot reload's MarkAlreadyComplete, which restamps login): the player's owned items plus each owned side pack, uncached ones added as inventory work. The 5/s inventory cap still applies. - The drain moved into AutoIdDrain.cs, a pure unit behind IAutoIdWorld, so it runs against a fake world in EngineRobustnessTests (cold snapshot for N seconds, then every pack item is sent, none before login + 30 s, at most 5 per second). - A refused EnqueueRequestId keeps the entry, is not counted as sent, ends the tick's sending and does not take the inventory rate slot. The priority target is re-armed on refusal. - The flight tag is registered only after _requestId returns true; the pending table is 256 (MaxRequestIdQueue); IdentifyTagging covers 200 registrations and 200 matches. - The 4096 pending cap applies only in Limited mode; _incoming is bounded at 16384 while DrainTick returns early, dropping the oldest and counting them. - 0x0022 InventoryPutObjInContainer is read in SmartBoxHooks.ParseGameEvent so it works with ServerMessageStream off; ServerMessageStream is back to its base text. - check_offthread_mutators.py: the stale DrainPending allow-list entry is replaced by LiveWorld's Enqueue. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
44765436cd
commit
c9bbafbfb4
14 changed files with 670 additions and 218 deletions
|
|
@ -43,6 +43,7 @@ internal static partial class Program
|
|||
RunRingAndGateTests();
|
||||
|
||||
RunAutoIdLimitTests();
|
||||
RunAutoIdDrainTests();
|
||||
|
||||
Console.WriteLine($"{_checks} check(s), {_failed} failed.");
|
||||
return _failed == 0 ? 0 : 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue