Skip to content

fix(first-light): select same-stage shader variants by archive offset (BUILD-834) - #2893

Open
jeremygold02 wants to merge 7 commits into
ItsNotRexed:mainfrom
jeremygold02:fix/first-light-shader-offsets
Open

jeremygold02 wants to merge 7 commits into
ItsNotRexed:mainfrom
jeremygold02:fix/first-light-shader-offsets

Conversation

@jeremygold02

@jeremygold02 jeremygold02 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claimed as BUILD-834. Prerequisite #2419 has merged.

What changed

A vertex or pixel shader name can identify more than one program in the same stage. The old stage/name lookup silently kept the last entry. This change reports the matching archive offsets and lets the caller select the variant with --vs-offset or --ps-offset. Both accept decimal and hexadecimal values. --list shows offsets, the lookup checks the program stage, and the manifest records the selected offsets. Existing unique-name lookups continue to work. Reported package case

Verification at 10a45fdd

Merged upstream f847748c into the branch and retained the current carve-index validation in --list. The three changed files are the tool, its documentation and a synthetic regression suite.

  • All 55 tests passed across five suites. These included 11 first-light tests with all three package-gated checks, three selector tests, nine malformed-JSON tests, 27 shader-carver tests and five documentation-link tests.
  • Diagnostic GPU draw. Rebuilt the Windows Vulkan harness from this revision, selected the documented pair by exact archive offsets, and prepared its 128 × 128 fixture again. The model and both shader hashes matched the reference. The harness and CLI produced byte-identical readbacks, with 12,804 of 16,384 pixels covered. The center, four off-center UV samples and the clear pixel matched. Earlier run · Reference material provenance
  • Authored material, CPU-only. On a second model, the stored geometry-to-material mapping and the decoder agreed on the effect key. I chose one stored graphics pass from that effect with the named-pass reader. The native record and carve offsets differ by one byte for its pixel program. Both offset selections recovered the intended containers. Both FSSM digests matched the translator metadata, and both modules passed Vulkan 1.2 SPIR-V validation. The vertex and pixel stages declare six and two resource bindings respectively. Runtime pass choice, buffer contents and the rendered appearance of this pass remain open.

Windows 11 Home 25H2 build 26200.9974, Intel Core Ultra 7 265K, Python 3.12.10. Both GPU draws used the NVIDIA GeForce RTX 5070 (driver 621.01). Integrated Intel Graphics (32.0.101.9150) was idle. Ubuntu/WSL supplied LLVM 21.1.8 and SPIRV-Tools 2026.1. Game and derived files stayed local. AI-assisted.

@kacper-serewis

Copy link
Copy Markdown
Contributor

Independent retail validation of 8ee1e2a on Windows, CPU only (AI-assisted).

Across all 26,503 carve records, grouping by exact stage and display name produced 96 ambiguous VS groups (1,190 records), 672 PS (9,461), 10 GS (192), 599 MS (8,892), and zero CS. Of the ambiguous VS and PS groups, 95 and 671 respectively contained more than one distinct DXBC byte sequence. All 10,651 ambiguous VS/PS containers matched independent decompression at their indexed archive offsets. The real CLI listed all 14,337 VS/PS records with the expected selectors.

For end-to-end packaging I ran the unmodified CLI on every offset in one seven-member PS group and one two-member VS group. All nine manifest offsets and FSSM digests matched the selected records. All nine packaged containers matched the archive bytes, and all nine packaged SPIR-V modules matched fresh, single-container translations from those archive bytes on the same revision and toolchain. The PS group included the only ambiguous VS/PS record whose file stem matched an existing SPIR-V file in the scanned work and temp outputs. Neither of its two historical files matched the current module byte-for-byte; their build provenance was not established.

This verifies selected-module identity for nine offsets. No GPU draw, driver validation or rendered-output comparison was performed.

@tupacfan04

Copy link
Copy Markdown
Contributor

Code read of 8ee1e2ab (I didn't run it). Looks right. Selection now filters by stage as well as name, so a VS and a PS with the same display name no longer collide. A duplicated name is refused with the offsets to choose from, rather than silently taking the last one. The translator result and .spv are looked up by the entry's own file stem instead of the old ~1 prefix guess, and the manifest records the chosen offset. As stated, it depends on #2419 for distinct file stems.

AI-assisted review (Claude Code).

@Marukooh

Copy link
Copy Markdown
Contributor

Tested 8ee1e2ab on CachyOS Linux, Python 3.14. tests/test_first_light.py, tests/test_first_light_shader_selection.py: 8 passed, 3 skipped, 2 subtests passed.

The base fails the four same-name/offset selection checks in the head tests. The head keeps the variants distinct. The three package-dependent tests were skipped.

AI-assisted, synthetic inputs only.

@jeremygold02

Copy link
Copy Markdown
Contributor Author

I closed the three previously skipped package-gated tests on the current PR head 8ee1e2ab4b6c625c5c31e3b86398f04fb5979d59.

I recovered the documented static model from my 1.0.2.1 package and verified its OBJ SHA-256 against docs/first_light.md (4,213 vertices, 7,968 triangles). I prepared a two-entry carve index from the original archive and selected the documented VS and PS using --vs-offset and --ps-offset. Both FSSM hashes matched the published values, both shaders translated, and both passed Vulkan 1.2 SPIR-V validation.

On native Windows Vulkan, the harness and the tool’s --check path produced byte-identical 128×128 readbacks. The documented --no-fit draw covered 12,804 / 16,384 pixels (78.1494%), matching the published count. The center UV, four asymmetric UV probes and clear-pixel checks passed. tests/test_first_light.py passed 8/8 with no skips; tests/test_first_light_shader_selection.py passed 3/3. The GPU run used the documented pair; same-stage duplicate-name rejection and exact variant selection were checked in the separate selection suite.

Hardware: Intel Core Ultra 7 265K; NVIDIA GeForce RTX 5070, driver 621.01, selected by both Vulkan draws; integrated Intel Graphics was also installed. Windows 11 Home 25H2 build 26200.9974, Python 3.12.10. Shader translation ran under Ubuntu/WSL using LLVM 21.1.8 and SPIRV-Tools 2026.1. The harness source matched this PR head. AI-assisted.

@zzEmmazz

Copy link
Copy Markdown
Contributor

Tested 8ee1e2ab, applied alone on main 16282101: pass.
Windows 11 (26200), MSVC 14.50 (VS 2026), Ninja RelWithDebInfo. Two GPUs: Ryzen 7 9700X iGPU (RDNA2, AMD 32.0.21042.62) and RTX 3070 (NVIDIA 610.74), picked with LEONIDA_VK_DEVICE.

  • With only the tests applied, 4 fail: test_same_display_name_keeps_both_stage_files, test_ambiguous_name_lists_offsets_and_each_selects_its_own_entry ("SystemExit not raised"), test_list_shows_selectors and test_selected_files_and_metadata_survive_assembly (SystemExit: 2).
  • With the PR: test_first_light.py 8 run, 5 pass, 3 skip; test_first_light_shader_selection.py 3 pass; test_shader_carve.py 27 pass; test_docs_links.py 5 pass. With LEONIDA_FIRST_LIGHT_DIR set, test_first_light.py passes 8 of 8 on each GPU.

Against my own copy of the 1.0.2.1 package and a draw on both GPUs, which the earlier checks did not have:

  • The default pair does not change. main and the PR both pick VS_main_170e32e6_Wrapped (offset 0x4f780) and $PS_Rage_Untextured_14f8529b_Wrapped (offset 0x51799a8). vs.dxbc, ps.dxbc, vs.spv, ps.spv, mesh.bin, index.json and the drawn image.raw are byte-identical between main and the PR on each GPU: 4,213 vertices, 7,968 triangles, 12,804 of 16,384 pixels covered. The manifest only gains the two offset fields.
  • Picking the same pair with --vs-offset 0x4f780 --ps-offset 85432744 gives the same bytes and the same image.
  • A same-name pair of pixel shaders (two records with one display name, at offsets 0x4efe32d and 0xbaeb6af, containers of 3,160 and 18,408 bytes):
    • main takes the second record, translates it and then exits 1 with FileNotFoundError for <name>.spv, since the translator wrote <name>~1.spv.
    • The PR refuses the name and prints both offsets.
    • Each --ps-offset packages its own record: the manifest offset, the ps.dxbc SHA-256 and the FSSM SHA-256 match that record in the carve and translation indexes.
  • An offset that is in no record, a VS offset given as --ps-offset, and --ps together with --ps-offset are each refused.
  • --list prints 14,337 lines (2,236 VS and 12,101 PS), each with its selector. The carve index of this package has 96 same-name VS groups (1,190 records) and 672 PS groups (9,461), the counts @kacper-serewis gave.

Not checked: a draw with a pixel shader chosen by offset from a same-name group, and main f847748c, where #2419 is merged and this branch's own commit conflicts in tools/first_light.py.

@jeremygold02

Copy link
Copy Markdown
Contributor Author

Thank you for checking the same-name variants and reproducing the default draw on both the Ryzen iGPU and RTX 3070. I merged f847748c into the PR in 10a45fdd and kept upstream's index validation in --list. GitHub now reports the branch as mergeable.

I rebuilt the Windows harness from the new head and reran the five suites. All 55 tests passed, including all three package-gated checks. The two diagnostic draws on the NVIDIA GeForce RTX 5070 (621.01) again produced identical readbacks with 12,804 of 16,384 pixels covered. The host CPU was an Intel Core Ultra 7 265K on Windows 11 Home 25H2 build 26200.9974. The updated PR description also records a separate CPU-only test that followed one mesh's own material pass through offset selection and translation. AI-assisted.

@Ryongen

Ryongen commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 8ee1e2a on NVIDIA GeForce RTX 2070 SUPER (driver 617.42), Windows 10, against a work folder built from my own 1.0.2.1 package (make_game.py --stages shaders, wave64 emulation on, SPIRV-Tools 2026.4): pass.

  • tests/test_first_light_shader_selection.py 3/3 OK, tests/test_first_light.py 8 OK (3 skipped).
  • --list on the full carve: 672 PS names and 96 VS names occur more than once within their stage (one name has 261 variants).
  • --ps <ambiguous name> stops with the list of offsets instead of picking one.
  • --ps-offset with two offsets of the same name selected two different programs (different FSSM SHA-256 and ps.spv), both pass spirv-val, and manifest.json records the chosen offset.
  • A VS offset passed to --ps-offset is rejected (no ps shader with offset …).
  • Not run: --run/--check (no vk_harness build here).

Minor: <work>/first_light/dxbc keeps the previous selection's blob, so a second run re-translates it (3 shaders: 2 translated, one stage ? line). The output is still right; clearing that folder per run would tidy it.

AI-assisted.

Keep the DDS-aware default pixel shader when no selector is supplied, and let an explicit name or archive offset override it. Exercise both paths through the CLI.

Refs: ItsNotRexed#2893
@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Reviewed da5ef2e merged onto main de67135 on Linux (CPU only): fail

Ran on the merge (python3.13 -I -m pytest -q): tests/test_first_light_shader_selection.py tests/test_first_light.py tests/test_ci_registration.py tests/test_docs_links.py tests/test_text_encoding.py: 5 failed, 46 passed, 4 skipped, 14 subtests passed.
The same new test file run on the PR head alone (worktree at da5ef2e, without current main): 4 passed, 6 subtests. So the failure comes from the interaction with main.

Failures:

  • tests/test_first_light_shader_selection.py::ShaderSelectionTests::test_selected_files_and_metadata_survive_assembly
  • tests/test_first_light_shader_selection.py::ShaderSelectionTests::test_pixel_shader_defaults_and_explicit_selectors_with_dds (all 4 subtests)
    All end with FileNotFoundError: .../first_light/spirv/index.json at tools/first_light.py:181 (in translate).

Cause: main now has reset_run_folders() (tools/first_light.py, called at the top of translate), which removes /first_light/dxbc and /spirv before every run. The PR's helper stage_compiler_outputs() (tests/test_first_light_shader_selection.py, about line 46-55) pre-creates first_light/spirv with a fake index.json and then patches fl.run to a no-op, so the translator stage never recreates it, and the new reset deletes the staged files. The test needs to stand in for the compiler differently (for example patch fl.run with a function that writes the spirv folder and index.json when it sees the rdna2spirv.py call) after the reset, not before it.

Needed: rebase on current main and fix the stub so the translator output is written by the patched run(), not pre-staged.

Read of the rest of the diff (choose() with --vs-offset/--ps-offset, mutually exclusive groups, --list selectors, manifest "offset"): the selection logic itself looks right; duplicate offsets and wrong offsets give clear SystemExit messages, tested. No other defect found.

No game files.
AI-assisted (Claude Code).

@kapitche

Copy link
Copy Markdown
Contributor

Tested da5ef2e merged with main 98fa503 on Linux (Python 3.12.16): fail. The merge is clean, but the result breaks tests. The PR changes the signature of translate() in tools/first_light.py (new vs_offset/ps_offset keywords), and two tests that landed on main after the PR was branched stub it with a lambda that doesn't take them: tests/test_first_light_mesh_draw.py (2 errors, TypeError: ... unexpected keyword argument 'vs_offset') and tests/test_first_light_stale_mesh.py (1 error). The PR's own tests/test_first_light_shader_selection.py also errors after the merge (5 errors, FileNotFoundError: .../first_light/spirv/index.json from translate()), while the first two pass on main and the new test passes on the PR's own base. Needs a rebase onto main and the stubs updated.

Accept offset selectors in the mesh test doubles and generate the selected shader outputs when the translator runs after cleanup. Keep the missing-metadata case on the second run.

AI-assisted by GPT-6.2 Astra.

Refs: ItsNotRexed#2893
@jeremygold02

Copy link
Copy Markdown
Contributor Author

Fixed both integration failures in d4ee053. I reproduced eight failing cases on the clean merge of the previous head da5ef2ee with main at d974c88a. The repair is a merge commit on this branch. Shader selection report · Mesh and stale-mesh report

  • The three mesh errors came from the two choose() stubs. They now accept vs_offset and ps_offset. The production call to translate(work, picked) remains positional.
  • The five missing-index errors came from staging fake compiler output before the run-folder reset. The fixture now reads the staged selection and writes the corresponding synthetic programs and index when the mocked runner invokes rdna2spirv.py. Omitting the selected pixel shader's metadata on a second run still triggers the expected diagnostic.

Verification. All eight tests in the three affected files passed, including six subtests. The broader Windows run covered all six First Light suites, shader carving, CI registration, documentation links, encoding and line endings. It reported 102 passed, 18 subtests passed, four symlink subtests skipped on both the pushed head and its clean merge with newer main at 3faac557. All four symlink cases ran successfully on Ubuntu/WSL. That CPU-only First Light run passed all 45 applicable tests and skipped four package or harness checks.

On Windows 11 with Python 3.12.10, I rebuilt the Vulkan harness from the integrated source and ran the retained 128 × 128 fixture on the NVIDIA GeForce RTX 5070, driver 32.0.16.2101. The CLI and direct harness covered 12,804 of 16,384 pixels and produced byte-identical readbacks matching the earlier reference. The CPU was an Intel Core Ultra 7 265K. Integrated Intel Graphics (driver 32.0.101.9150) was idle. The three changed test files use synthetic data only.

AI-assisted by GPT-6.2 Astra.

@Desamodeth Desamodeth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested d4ee0538 merged with main (3faac557) on Windows, CPU only. A synthetic archive containing two VS and two PS variants with the same name produced four distinct offsets. All four stage pairs selected the expected container bytes. Ambiguous names and a pixel offset supplied for the vertex stage stopped before translation. The first-light, carver and CI-registration suites passed (82 passed, 9 skipped).

One diagnostic regression remains. In the carve index, set a listed entry’s offset to null or "0x20" and run first_light.py --list. Both produce a Python traceback at the :#x formatter. A missing offset still works. Please validate a present offset as an integer in both listing and selection, and report the index path and entry number on failure. AI-assisted.

Merge main's perspective camera defaults with archive-offset selection. Validate optional offsets before listing or selecting a shader and reject an incompatible camera vertex shader before translation.

AI-assisted by GPT-6.2 Astra.

Refs: ItsNotRexed#2893
@jeremygold02

Copy link
Copy Markdown
Contributor Author

Fixed the merge conflict and the reported malformed-offset diagnostic in eaa629131. The commit merges upstream c1392d06f into the reviewed head d4ee0538. That upstream revision still selected by name only. I also verified a clean trial merge with newer main at dde82f27e.

  • Malformed indexes. Before the fix, --list raised tracebacks for JSON null and "0x20" and printed true as offset 0x1. Listing, selection by name and selection by offset now share the same reader. A present non-integer offset produces one diagnostic naming the index path and zero-based entry number. An omitted offset remains valid for older indexes.
  • Perspective camera. Upstream's --camera default still selects its camera vertex shader. Selecting that shader by archive offset also writes the camera manifest and constants. An offset selecting another vertex shader is rejected before translation. The existing DDS-aware pixel shader default remains covered.

CPU verification. The four selector, malformed-index and mesh suites passed 19 tests and 20 subtests. On the trial merge, the six First Light suites plus carving, CI registration and encoding passed 113 tests and 125 subtests. Windows skipped four package/harness checks and four symlink cases. Ubuntu/WSL ran the six First Light suites, including the symlink cases, with 66 passes and four package/harness skips.

Adding the repository-wide documentation-link and text-write checks exposed three failures that I reproduced on untouched c1392d06f in the same combined Windows run. Two were broken links and unpinned text writers outside First Light. The third was a missing Git environment value in the temporary Unicode-filename test, which passed when run in isolation.

Windows 11, Python 3.12.10, Intel Core Ultra 7 265K. Synthetic CPU fixtures only. The NVIDIA GeForce RTX 5070 (driver 32.0.16.2101) and Intel Graphics (driver 32.0.101.9150) were idle.

AI-assisted by GPT-6.2 Astra.

@YordiLorenzo

Copy link
Copy Markdown

Tested eaa6291 on Linux, Python 3.12.16: pass

  • python -I tests/test_first_light_shader_selection.py: 5 tests OK on the head and on the head merged with main dde82f2
  • python -I tests/test_first_light_bad_json.py: 10 tests OK
  • the other three tests/test_first_light_*.py: 8 tests OK
  • control: the new and changed test files on main fail (shader_selection 3 failures and 7 errors, bad_json 12 failures)

@tulerws

tulerws commented Nov 23, 2026

Copy link
Copy Markdown

Tested eaa6291 on CPU-only, Pop!_OS 24.04 LTS (Linux x86_64 7.2.15), Python 3.12.3: pass

Checks run (no game files, no GPU):

  • git apply --check against origin/main (dde82f27e): clean (also applies cleanly combined with first_light: honor explicit minimum coverage on recheck #3751 at 205afd1205, with all 6 First Light suites passing together).
  • python3 -m compileall -q tools/first_light.py tests/test_first_light*.py: pass
  • python3 -I scripts/check_no_game_data.py docs/first_light.md tools/first_light.py tests/test_first_light_bad_json.py tests/test_first_light_mesh_draw.py tests/test_first_light_shader_selection.py tests/test_first_light_stale_mesh.py: pass
  • git diff --check origin/main...eaa6291317: pass
  • python3 -I tests/test_first_light_shader_selection.py -v: 5/5 passed
  • python3 -I tests/test_first_light_bad_json.py -v: 10/10 passed
  • python3 -I tests/test_first_light.py -v: 47 run, 43 passed, 4 skipped (LEONIDA_FIRST_LIGHT_DIR / vk_harness)
  • python3 -I tests/test_first_light_harness_paths.py -v: 4/4 passed
  • python3 -I tests/test_first_light_mesh_draw.py -v and tests/test_first_light_stale_mesh.py -v: pass
  • python3 -I tests/test_ci_registration.py -v: 14/14 passed
  • tests/test_docs_*.py: all pass except pre-existing unrelated failures on origin/main (docs/embedded_shaders.md in test_docs_cli_flags.py; docs/dev-tools.md & docs/gpu_test_results.md in test_docs_links.py); docs/first_light.md and tools/first_light.py have zero doc/flag issues.
  • Negative control (PR's test_first_light_shader_selection.py and test_first_light_bad_json.py on unmodified origin/main tools/first_light.py): failed as expected (3 failures + 7 errors; 12 failures).
  • Additional CLI probes verified: --vs + --vs-offset mutual exclusion (exit 2), duplicate archive offset in index (exit 1 with hex offset), and --camera rejecting a non-CAMERA_VS offset before translation (exit 2).

Minor code-review notes (non-blocking):

  1. tools/first_light.py:930: type=lambda s: int(s, 0) causes argparse to print invalid <lambda> value: 'nope' on bad CLI input; a small named converter (e.g., def _offset(s): return int(s, 0)) would give a cleaner error message.
  2. tools/first_light.py:163: when --vs-offset 0x999 is not found, f"no {stage} shader with {field} {value!r}" formats the offset in decimal (2457), whereas --list and the duplicate-offset error format offsets in hex (0x...).

AI-assisted: yes

@isfcrctfs isfcrctfs 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.

Read eaa62913 on Linux (CPython 3.12.16): the selection change is correct.

tests/test_first_light_shader_selection.py 5/5; test_first_light_bad_json 10/10; test_first_light 47 ran, 4 skipped, 43 passed; test_first_light_mesh_draw and test_first_light_stale_mesh OK. tests/test_ci_registration.py 14/14, so the new file is picked up by the CI loop, and scripts/check_no_game_data.py is clean on the four changed files.

The logic reads right: choose() filters on stage plus field, a duplicated name is refused with the offsets to choose from, a duplicated offset gets its own error, and --camera re-checks the picked VS name before translate() is called, so a wrong --vs-offset cannot stage anything.

One cosmetic nit: type=lambda s: int(s, 0) (tools/first_light.py:930) makes argparse report argument --ps-offset: invalid <lambda> value: 'zz'; a named one-argument helper gives a readable name in that message.

No defect found. Not run: the package-gated GPU draw.

AI-assisted.

@ne1i

ne1i commented Nov 23, 2026

Copy link
Copy Markdown

Tested eaa62913 on Linux, CPython 3.14, CPU only, synthetic inputs, merged onto main dde82f27: pass

  • python -I tests/test_first_light_bad_json.py: Ran 10 tests, OK. With only the non-test files reverted to main: FAILED (failures=12).
  • python -I tests/test_first_light_shader_selection.py: Ran 5 tests, OK. Reverted: FAILED (failures=3, errors=7).
  • tests/test_first_light_mesh_draw.py (3) and tests/test_first_light_stale_mesh.py (1): OK both with and without the change, so those two do not depend on it.
  • compileall and scripts/check_no_game_data.py on the changed files: clean.

Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047.

Select the documented UV program's readback expectations by its FSSM digest when a DDS remains bound. Apply the same rule on recheck of previously generated manifests. Exercise UV and copy frames with matching coverage through the public checker.

Refs: ItsNotRexed#2893

AI-assisted by GPT-6.2 Astra.
@jeremygold02

Copy link
Copy Markdown
Contributor Author

At a1d4e135aa73747ec708dfaa4340c2880cd540a7, First Light checks the documented UV pixel shader against its interpolated UV output when a DDS is also supplied. The previous head selected the requested program correctly but compared its output to pixels sampled from the DDS. The correction uses the public FSSM digest, so another program with the same display name does not inherit this assumption. It also updates the expectations used by --check on earlier saved manifests.

I ran the public check_image function on synthetic 16×16 RGBA32F frames with identical coverage (128/256 pixels). The UV output had alpha 1 and the transparent-black copy had alpha 0. CPU result for explicit UV selection, by both offset and name:

Input frame eaa62913 a1d4e135
UV output Rejected Accepted
Texture-copy output Accepted Rejected

The ordinary UV and DDS-copy defaults each accepted their own output and rejected the opposite control on both revisions. All five tests in tests/test_first_light_shader_selection.py passed on the new head, including the saved-manifest recheck and a different digest with the same name. The readback checker and Vulkan harness code are unchanged. Matching the shader's own output remains necessary when using other custom pixel programs.

Windows 11 Home 25H2, Intel Core Ultra 7 265K, CPython 3.12. CPU-only synthetic test; no game input or GPU run. NVIDIA GeForce RTX 5070 (621.01) and integrated Intel Graphics were idle. Each test process was limited to 128 MiB and 10 seconds, and measured peak job memory stayed below 24 MiB.

AI-assisted by GPT-6.2 Astra.

@morodirule

Copy link
Copy Markdown

Tested a1d4e13 on Arch Linux, Python 3.14.10, CPU only: pass. tests/test_first_light_shader_selection.py 5/5, bad_json 10/10, mesh_draw 3/3, stale_mesh 1/1, harness_paths 4/4, test_first_light.py 47 ran OK (4 skipped, package/GPU-gated). Negative control: merge-base tools/first_light.py fails shader_selection 3+4 and bad_json 12; restored, green again. Note: test_docs_links has 1 failure, proven pre-existing (identical on origin/main; anchor issue in docs/dev-tools.md, untouched by this PR). No game files. AI-assisted.

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.