Skip to content

Fix zoom-out completeness: propagate every parent, report unreadable chunks - #4

Merged
malken21 merged 1 commit into
mainfrom
fix/zoom-parent-completeness
Nov 8, 2026
Merged

malken21 merged 1 commit into
mainfrom
fix/zoom-parent-completeness

Conversation

@malken21

@malken21 malken21 commented Nov 8, 2026

Copy link
Copy Markdown
Member

Problem

Black tiles on the map site (found 2026-11-08). Two structural causes in the renderer:

  1. ZoomBuilder.rebuild only carried parents that were written or dropped to the next level. A parent that was missing for unchanged children was therefore never created - not even by --zoom-all, whose parent set is "parents of changed children plus parents that exist". 60 zoom-2 parents of map 2 are missing while their zoom-1 children exist, and the zoom-3 parents above them have the absence baked in as fully transparent quadrants.
  2. Chunks that are stored but cannot be read were dropped by ScanCache without a trace, and a mega tile that failed to render was skipped silently - a tile lost either way left no record.

Changes

  • zoom_builder: new pure plan_level() decides each parent (write / drop / absent / same); every processed parent propagates to the next level. A zoom_all pass now leaves no existing tile without its parent.
  • scan_cache: count stored-but-unreadable chunks (broken data, external-file chunks); run and scan report the count.
  • renderer_pool: log a mega tile that could not be rendered.
  • tests: plan_level outcomes incl. the propagation regression, and the scan unreadable count. 173 checks, 0 failed locally (Godot 4.7.2 headless, same as CI).

Data repair (filling the existing holes with the fixed build) is a separate step after this merges.

@malken21
malken21 merged commit a52f451 into main Nov 8, 2026
2 checks passed
@malken21
malken21 deleted the fix/zoom-parent-completeness branch November 8, 2026 11:43
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.

1 participant