Skip to content

2.0.10: measure crowded-server scan budgets; close C3 by measurement - #24

Merged
MrHakan merged 5 commits into
mainfrom
crowd-budgets
Oct 10, 2026
Merged

MrHakan merged 5 commits into
mainfrom
crowd-budgets

Conversation

@MrHakan

@MrHakan MrHakan commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

E4 and C3 of the 2.1.00 plan (docs/MAJOR_GELISTIRME_PLANI.md), plus a hunting fix the CI runs on this PR turned up.

Fix: hunting left meat on the ground. CI failed twice in the real-Baritone huntBeyondSight scenario. A per-100-tick state log showed the hunt killing the cow, standing on the block it died on for 40 ticks and walking off with no beef: death drops scatter two or three blocks, out of pickup range. HuntTask now walks to the nearest dropped stack of the hunted item within six blocks of the kill. Before: 2 of 3 local and 2 of 3 CI runs failed; after: 3 of 3 local runs passed. The scenario also starts from a known player state (health, food, empty inventory), reports that state on failure, and tools/test-baritone.sh now prints the failing assertion instead of only Gradle's stack trace.

E4: crowded-server budgets. New ModuleBehaviourGameTest.crowdBudgets scenario after the shared walk. It times a fresh BlockESP scan for twelve diamond ores while ESP and Nametags walk a crowd every tick:

Crowd BlockESP found in entity units/tick scanner avg / peak
none (control) 27 ticks 0 0.25 / 1.84 ms
1,500 stands 27 ticks 1,501 0.63 / 0.80 ms
5,000 stands 27 ticks 4,096 (cap) 1.28 / 1.77 ms

Asserted: the block scan is not slowed by the crowd, a tick never spends more than the 4,096-observation cap, ESP still gets a full result past it, and the crowd reaches the client.

Logged, not asserted: the walk reads the render list in arrival order, so with the 500 nearest of 5,000 stands arriving last, none of ESP's 256 targets is among the true nearest 256. The plan gets a new item for it, E5: a walk that starts from the nearest entities.

C3: Trajectories. Measured with a throwaway local bench (not committed) in the same scene: ~45 us/frame in the open, 20-28 us into the crowd, 70-80 us at worst (straight up, 300 steps), about a quarter of ESP with 256 targets in view. The planned single-entity-query rewrite would not pay for itself, so the item is closed without a change.

Local validation on 13d65a5 (Windows, JDK 25): ./gradlew build (945 tests), runClientGameTest including the new scenario, the real-Baritone acceptance run and productionAddonInstallationTest passed. Dedicated-server scenarios skipped without the EULA.

🤖 Generated with Claude Code

MrHakan and others added 2 commits October 10, 2026 13:17
E4 of the 2.1.00 plan. The shared-walk scenario stopped at 300 entities, and nothing measured the
entity walk and the block scanners competing for the same tick.

A new scenario after it builds a crowd in three steps, timing a fresh BlockESP scan for twelve
diamond ores each time while ESP and Nametags walk the crowd every tick:

  alone (control)   27 ticks, 0 entity units/tick, scanner 0.25 ms avg
  1,500 stands      27 ticks, 1,501 entity units/tick, scanner 0.63 ms avg
  5,000 stands      27 ticks, 4,096 entity units/tick (the cap), scanner 1.28 ms avg

Entities and blocks are separate allowances, so the block scan is not slowed at all, and past the
4,096-observation cap a tick spends exactly the cap. Both are asserted, as are a full ESP result
past the cap and the crowd actually reaching the client.

What is logged rather than asserted is the cap's real cost. The walk inspects the render list in
arrival order, so when the 500 nearest stands arrive last (positions 4,501 to 5,000) ESP keeps 256
targets and none of them is among the true nearest 256. The stands are stacked so that all 5,000
stay inside the client's tracking range; spread out, 800 of them never reached it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… it is

Raises mod_version to 2.0.10 and records two measurements in the changelog, the plan and the
handover notes. E4: the block scan keeps its pace beside a 1,500- and a 5,000-entity walk, and the
observation cap holds, but past it the walk can miss every nearest entity; that becomes E5, a walk
that starts from the nearest entities. C3: Trajectories costs 20-80 us a frame in the same scene,
too little for the planned rewrite to pay for itself, so the item is closed without a change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 10:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

MrHakan and others added 3 commits October 10, 2026 14:16
PR #24's first CI run failed in the Baritone step, and the step's output was the last 100 lines of
the log: Gradle's stack trace and nothing else. The assertion that ended the run was hundreds of
lines further up, so the log view could not say what had failed, only that something had.

The script now ends a failed run the way tools/smoke-client.sh does: the first matching failure
lines and the six lines after each, under "=== what failed ===", or a note that none matched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR #24 failed CI twice in huntBeyondSight with the hunt still RUNNING after 3,000 ticks and not one
Baritone path computed in that time. The scenario drives the hunt as the campaign does, ticking it
only when SurvivalTasks.maintain() has nothing to do, and maintain() pauses (and returns true) on
health at or below 6, hunger with no food, or fewer than two free inventory slots. The scenario ran
on whatever the earlier mining and storage scenarios had left the player with, which differs
between machines; locally the hunt ran, on CI it never got a tick.

The player is now healed, fed and given an empty inventory before the hunt starts, and a failure
reports health, food, free slots and the executor's pause reason, so the next one names its cause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A per-100-tick state log in the real-Baritone hunting scenario showed what made it fail about half
the time: the hunt reached the cow and killed it, walked to the block it died on, waited 40 ticks,
dropped the drop phase with no beef picked up, and went back to its lookouts looking for an animal
that no longer existed. Death drops leave with a random push and often land two or three blocks
away, outside pickup range of the spot itself.

The drop phase now walks to the nearest dropped stack of the hunted item within six blocks of the
kill (LOOT_RADIUS), and to the death spot only once none is left there. Leather is found the same
way, since the item being hunted is what is matched.

Before: 2 of 3 local runs and 2 of 3 CI runs failed. After: 3 of 3 local runs passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MrHakan
MrHakan merged commit 9428381 into main Oct 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants