Skip to content

Do not pin transient chunk-read failures; leave unfilled megas out of done - #6

Merged
malken21 merged 1 commit into
mainfrom
fix/transient-chunk-reads
Nov 10, 2026
Merged

malken21 merged 1 commit into
mainfrom
fix/transient-chunk-reads

Conversation

@malken21

Copy link
Copy Markdown
Member

Problem

Follow-up to #4 (the black-tile investigation). A complete only-missing pass still left real holes: e.g. a main/surface tile that renders non-blank standalone stayed missing after its mega tile had been rendered and marked done. Two mechanisms:

  1. WorldReader cached chunks that failed to decode. On a live world a read can race the game saving the region file; pinning the failure blanked the chunk's tiles for the rest of the run, and the publisher treated them as legitimately empty.
  2. RunJob marked a mega tile done even when its missing candidate tiles had rendered blank and were therefore still missing, so no later run ever retried them.

Changes

  • world_reader: a chunk that cannot be read or decoded (or is absent) is no longer cached; the next read retries against the current file. Absent chunks cost one header lookup per retry against the cached region image.
  • publisher: in only-missing mode, report per mega tile how many candidate tiles are still missing after the upload (rendered blank), via a pure still_megas() helper.
  • run_job: mega tiles with still-missing tiles are left out of the done set, with a warning naming the count.
  • tests: the cache behaviour (failure not cached, success cached) and the still-megas grouping. 181 checks, 0 failed locally (Godot 4.7.2 headless, same as CI).

@malken21
malken21 merged commit affe0e3 into main Nov 10, 2026
2 checks passed
@malken21
malken21 deleted the fix/transient-chunk-reads branch November 10, 2026 09:26
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