Skip to content

Speed up 3DS development builds and voxel checks - #296

Merged
ZallaxDev merged 5 commits into
ZallaxDev:integrationfrom
mkrieger95:perf/mkrieger95-voxel-build-followup
Nov 22, 2026
Merged

ZallaxDev merged 5 commits into
ZallaxDev:integrationfrom
mkrieger95:perf/mkrieger95-voxel-build-followup

Conversation

@mkrieger95

@mkrieger95 mkrieger95 commented Nov 20, 2026 •

Copy link
Copy Markdown

This follows up on #293. The goal is to spend less time waiting for a development build while keeping the same voxel output and verification checks.

What changed

  • Draw flat floor tiles directly when checking room and bridge images. The rest of the scene still uses the existing renderer.
  • Check several voxel maps at once and skip decoding vertex data the check does not use.
  • Prepare room drawings and floor masks in parallel. Furniture still gets placed in the same order.
  • After bootstrap prepares the upstream sources, use one 3DS Make call to build, verify, and package the engine. Packaging still waits for verification.

CI uses four workers for the new parallel steps. Local builds default to one worker and can opt in.

What we measured locally

Step Before After
Verified building generator with the flat-floor change 197.9 s 192.8 s
Voxel scene check about 42 s about 12 s
Verified building generator with parallel room preparation 199.1 s 180.7 s

These are separate local measurements.

The combined voxel Make targets passed locally. Both output binaries, the diagnostic files, and the scene check report matched the reference outputs. A Make dry run also confirmed that the build and link checks precede release packaging.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-21T16:11:43.099350Z
We couldn’t complete this review. Comment @codex review to try again.
21997da Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ecdf2dc952

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread 3ds_port/scripts/gen_voxel_buildings.py Resolved
@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks for the speed-up, @mkrieger95! The clean voxel outputs and diagnostics match integration, and make verify release passes with four workers. Before merging, it needs updating on top of #294 (now merged): in prepare_interior (gen_voxel_buildings.py), please keep #294's image_pixels() while preserving owner and variant_px as you have them. If #300 lands first, please also keep its grouped building/window-lights rule with its temporary output, the prerequisites from both changes, and --jobs "$(VOXEL_BUILDING_JOBS)". Could you also address (or explicitly respond to) the open Codex threads and rerun the combined build? Thanks!

…xel rules

Keep ZallaxDev#294 image_pixels() in parallel room preparation and retain its
original owner/variant calculations. Integrate ZallaxDev#300's atomic grouped
buildings/windowlights rule, temporary output, and all dependencies,
while wiring generator and scene-check worker counts. Preserve lazy
multiprocessing imports for browser generation.

Copy link
Copy Markdown
Author

Updated #296 in 77bd6a6 against current integration (includes merged #294 and #300).

  • Reconciled all deprecated getdata() reads to Replace deprecated Pillow pixel reads in voxel tools #294's image_pixels(), including in prepare_interior; owner and variant_px remain in interior_specs().
  • Kept Harden Emerald 3DS runtime and builder workflows #300's grouped buildings.bin / windowlights.bin rule, full prerequisites, atomic temp outputs and cleanup; added --jobs "$(VOXEL_BUILDING_JOBS)" within that rule.
  • Preserved the configurable parallel voxel scene check and the CI combined verify release command.
  • Replied to and resolved the previous Codex Pyodide import thread (both imports are now deferred to parallel-only branches).

The change was limited to the same five files. CI/build verification of the new merged head is still needed; no claim of a new successful run yet.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Preserve every newly merged upstream file and change (including
ZallaxDev#294 and ZallaxDev#300) while carrying forward ZallaxDev#296's five-file voxel
optimization and reconciled Pillow/Make changes.

mkrieger95 commented Nov 21, 2026 •

Copy link
Copy Markdown
Author

Follow-up: 21997da completes the synchronization with the entire latest integration tree (b7ec563), not just the overlapping files. The comparison now reports 0 commits behind and exactly the five intended changed files. This supersedes the initial reconciliation commit 77bd6a6 for merge readiness. The Codex import thread is resolved; fresh checks for 21997da are still pending.

@ZallaxDev

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks a lot for this, @mkrieger95. I rebuilt the PR on top of current integration and buildings.bin and windowlights.bin come out byte-for-byte identical with --jobs 1, --jobs 4 and the integration reference; voxel_engine_view check passes too. Merging now.

@ZallaxDev
ZallaxDev merged commit 6de1c53 into ZallaxDev:integration Nov 22, 2026
5 checks passed
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 22, 2026
…ior preparation (ZallaxDev#303)

Consolidate investigational branch onto integration after ZallaxDev#296.
Preserve output-equivalent Pillow/raster/interior changes and host tests.
Benchmark pinned integration against candidate with 1 and 4 building workers.
Keep draft until fresh paired hashes, proof checks, and timing results are reviewed.
DannyM90 added a commit to DannyM90/emerald-3ds that referenced this pull request Nov 22, 2026
mkrieger95 added a commit to mkrieger95/emerald-3ds that referenced this pull request Nov 22, 2026
Benchmarks passed in CI #913 after ZallaxDev#296: verified buildings
6.72% faster with one worker and 7.37% faster with four workers;
all generated asset SHA-256 hashes matched baseline.

Preserve pixel/geometry semantics regression tests, restore the existing
profiling helper, and drop one-off benchmark scripts and workflows.
No runtime or generator behavior changes.
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