Repository navigation
perf: accelerate verified voxel building image processing - #303
mkrieger95 wants to merge 2 commits into
Conversation
|
Initial investigation is in place (commits Isolated synthetic microbenchmarks (local Pillow 12.3.0, not pinned Pillow 13.0.0; best of five repeats):
I also tested Pillow |
|
Pinned-environment update: The latest host CI run on Python 3.15.2 / Pillow 13.0.0 passed the actual production-function equivalence fixture, and all host/Python audits are green. The non-gating diagnostic benchmark in CI run 44914225373 reported:
These measurements repeat each isolated operation many times; they are not full generator wall-clock savings. The full |
|
Controlled A/B result: CI #891 completed successfully (run). Five alternating baseline/candidate runs in the same pinned Python 3.15.2 / Pillow 13.0.0 container, using identical prepared inputs and
The sum of per-generator medians is 306.108 s baseline vs 306.954 s candidate (0.846 s slower; ~0.28%). All 20 generated main outputs had identical SHA-256 hashes across the two versions and all five iterations, and the windowlights sidecar hash also matched. The A/B benchmark and all ordinary CI jobs passed. Result: microbenchmarks do not translate into a demonstrated end-to-end generator improvement. Keep draft; avoid claiming a speedup from these changes. A second run (#892, with leaner input preparation) is in progress and may independently confirm the result. Artifact containing |
|
CI #893 failure triaged and patched in |
|
CI #895 diagnostic and follow-up fix (latest commit We recovered usable profiling data from #895's uploaded artifact despite the failed reporter. Promising substantive hot spots in verified buildings include |
…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.
5d97cf0 to
64fff7f
Compare
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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Speed up voxel building generation and its image-verification proofs using output-preserving Pillow/image-processing changes. This follows #296 and retains its parallel interior preparation and flat-floor proof rendering. No asset, rendering, geometry, Python support, dependency or ROM-format change is intended.
putdata, retaining the existing cache key and defensive copy semantics.building_artrather than rescanning every ground tile at each covered pixel.Raster.draw; retain triangle acceptance threshold, depth, texture sampling and shading.Verified results against latest merged #296
CI #913: all jobs passed. On identical prepared sources using Python 3.15.2, Pillow 13.0.0, pinned
integrationbaseline6de1c53,PYTHONHASHSEED=0, and five alternating A/B pairs per configuration:The building improvement was consistent in all five measurements for both worker configurations. Relief results are mixed; no robust relief speedup is claimed.
All generated primary buildings and relief files and the windowlights sidecar had identical SHA-256 hashes across baseline/candidate and every repeat. The 3DS build, permanent image semantics/host tests and both Python audits also passed.
1-worker benchmark artifact · 4-worker benchmark artifact.
Earlier CI #899 likewise measured a 7.15% verified-building speedup against the older pre-#296 baseline. The initial microbench-only changes had no measurable whole-generator benefit in CI #891; the substantive image/raster pass accounts for the measurable combined speedup. We have not independently attributed the saving to each individual change.
Review / verification checklist
integration.5c5c433).This remains draft until the final post-cleanup CI pass. Full generated asset hashes and host pixel equivalence tests are strong evidence against visual regressions, but they are not a substitute for actual 3DS hardware inspection. No broad build-wall-clock reduction is claimed from a generator-only benchmark.