Repository navigation
2.0.10: measure crowded-server scan budgets; close C3 by measurement - #24
Merged
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
huntBeyondSightscenario. 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.HuntTasknow 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, andtools/test-baritone.shnow prints the failing assertion instead of only Gradle's stack trace.E4: crowded-server budgets. New
ModuleBehaviourGameTest.crowdBudgetsscenario after the shared walk. It times a fresh BlockESP scan for twelve diamond ores while ESP and Nametags walk a crowd every tick: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),runClientGameTestincluding the new scenario, the real-Baritone acceptance run andproductionAddonInstallationTestpassed. Dedicated-server scenarios skipped without the EULA.🤖 Generated with Claude Code