Skip to content

2.0.03: split the world overlay renderer by overlay family - #17

Merged
MrHakan merged 1 commit into
mainfrom
ccr-5681ba59-e5pne2
Oct 8, 2026
Merged

MrHakan merged 1 commit into
mainfrom
ccr-5681ba59-e5pne2

Conversation

@MrHakan

@MrHakan MrHakan commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

Item C1 of the 2.1.00 major plan. This is an architecture-only change and draws exactly what it drew before.

Before, ui/WorldOverlayRenderer held every world overlay in one 780-line class and picked them through an instanceof chain over thirteen module lookups.

New structure (ui/overlay)

  • WorldOverlay<M> — one per module, with three hooks:
    • active — whether to draw this frame (Freecam's body marker overrides it)
    • submitLabels — name-tag labels, submitted while the frame is collected
    • drawLines — geometry written into the shared lines buffer
  • Families:
    • EntityOverlays: ESP, Nametags, ItemESP, ProjectileESP, Tracers
    • BlockOverlays: StorageESP, BlockESP, SpawnESP, HoleESP
    • PathOverlays: Trajectories, Breadcrumbs, Waypoints, the Freecam body marker
  • OverlayDraw — line, box, marker and colour primitives.
  • WorldOverlays — the dispatcher. One ordered list drives labels, then lines. Adding an overlay is one class and one list entry.

Why behaviour is unchanged

  • The 40 moved members were compared automatically against the originals. They are identical apart from visibility (private → package) and qualified names becoming imports.
  • Unchanged:
    • the draw order of labels and lines
    • the per-module RenderService guard
    • the stale-level/player check in the deferred line pass
    • the single shared view frustum
  • WorldOverlaysTest pins the label and line order.
  • ViewCullingTest now scans the whole package. It still checks that line overlays are never culled and that box overlays cull in world space.

Validation (local, Java 25 + Xvfb)

  • ./gradlew build: 917 tests, 0 failures.
  • tools/smoke-client.sh passed on ab6fd3f, including every render scenario's pixel measurement:
    • HoleESP, Tracers, Nametags, ItemESP, Breadcrumbs, Waypoints, SpawnESP and ProjectileESP drew as before.
    • The shared entity walk still reports rendered=301 entity units=301 ESP=256 Nametags=64.

Release

mod_version=2.0.03, with a CHANGELOG.md section.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TGuJsde5s6BFqgC63uNGrh


Generated by Claude Code

WorldOverlayRenderer held every overlay in one 780-line class, chosen by an instanceof chain over thirteen module lookups. Each module's overlay is now a small WorldOverlay in ui/overlay: EntityOverlays (ESP, nametags, items, projectiles, tracers), BlockOverlays (storage, blocks, spawns, holes) and PathOverlays (trajectories, breadcrumbs, waypoints, the Freecam body), with the line and colour primitives in OverlayDraw. WorldOverlays drives labels and lines from one ordered list, so adding an overlay is one class and one list entry.

The forty moved members were compared against the original and are unchanged apart from visibility and qualified names. Draw order, the per-module render guard, the stale-level check and the shared frustum are the same; WorldOverlaysTest pins the order and ViewCullingTest now scans the whole package. Release as 2.0.03.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TGuJsde5s6BFqgC63uNGrh
Copilot AI balanced review requested due to automatic review settings October 8, 2026 10:01

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
MrHakan merged commit a1b231f into main Oct 8, 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.

3 participants