Skip to content

Codex/hingeworks alpha5 refinements - #3

Merged
themuffinator merged 4 commits into
mainfrom
codex/hingeworks-alpha5-refinements
Nov 16, 2026
Merged

themuffinator merged 4 commits into
mainfrom
codex/hingeworks-alpha5-refinements

Conversation

@themuffinator

Copy link
Copy Markdown
Owner

Summary

Roadmap Scope

  • Roadmap item(s):
  • User-visible workflow:
  • GUI, CLI, or shared service:

Validation

  • Meson build/test run or reason it was not applicable.
  • Relevant CLI command or smoke test run.
  • Docs/help text updated for behavior, options, formats, dependencies, or setup changes.
  • CHANGELOG.md has an Unreleased entry for user-visible changes (python scripts/changelog.py add ...).
  • User manual (docs/manual) updated, and python scripts/generate_offline_guide.py run, when user-facing behavior changed.
  • Accessibility/localization impact checked.
  • AI-free path preserved for core workflows.

Credits And Licensing

  • README Credits and docs/CREDITS.md updated for borrowed code, docs, algorithms, specs, UI patterns, or assets.
  • Upstream license headers/copyright notices preserved where applicable.
  • docs/DEPENDENCIES.md updated for new or changed libraries.
  • External compiler/toolchain changes documented in docs/COMPILER_INTEGRATION.md.

A nudge or drag checked the brushes it moved against every face line of the map; the first few are now checked directly and the lines gathered only when more follow. A plan view compares unchanged brushes against their cached geometry key in place. The page refresh works out the scene selection context and texture use once and lends them to the plan view and the material row. The scene panel and the layer list count the objects in Default without naming them when the map has no layers or groups.

With 4,000 brushes in the debug build, nudging one brush fell from about 500 ms to about 340 ms of the interface thread and undo from about 380 ms to about 270 ms. Small maps are unchanged; docs/LEVEL_EDITOR.md records what fixed work remains.
An audit of the materials module (scripts, node graph, images and library,
renderer, workbench and CLI) found about 100 problems; this fixes nearly all.

Scripts: each definition is bounded by matched braces, so one mistake no
longer hides the materials after it; Quake III and Doom 3 rejection rules,
sort defaults, zero wave spreads, tcGen with $lightmap, vertexParm filling
and undefined-table lookups follow the engines; names the engine's lexer
would split are refused; stage moves keep comments; ET implicit stages are
protected; Doom 3 built-in images are not listed as images; faster lexing.

Graph: property edits no longer delete the active control (crash, focus
loss) and wheel scrolling no longer edits; dialect image keywords, unknown
surfaceparms, SWANTBLS layout and draw order survive edits; Doom ranges get
a real last picture; overlap-free layout, Reset Layout, readable Fit Graph,
Show Whole Graph; selection and dragged positions follow edits; stage-aware
accessible names and announcements; graph edits re-read only their
definition.

Images and library: per-dialect image extension rules; package-only map
usage with an optional base scope; indexed palette, Doom catalogue, UDMF,
name and image lookups; cached patches, colormaps and image programs;
separate Doom wall and flat namespaces; ZDoom PK3 walls, # liquids, missing
patches; double-buffered RoQ with size limits; correct budget accounting.

Renderer: textures stay on the GPU between frames, superseded frames are
cancelled on the device; Doom 3 implicit white diffuse, lit translucent
materials, conditioned-off and perforated depth fill, clamp rules and
border colours; Quake III nomipmaps; overflow-safe table indices; cheap
random-duration frames; CPU checks for the pure engine rules.

Workbench: unsaved material edits are asked about on close and before
another package or script; texts belong to their package; per-text undo
history; stale-preview and image-race fixes; actions on every tab; a
debounced filter; background exports with progress; shared work tracker;
one worker thread per lane; Override in Package via core/material_override.

CLI: `material override`; more render options and --cycle; usage
--include-base; inspect shows classic text and shared images; stricter
edit JSON, --palette and --where; wal and new guards; translatable help.

Tests: four new suites (script rules, asset rules, render rules, graph UI)
and many new checks. Docs, manual, CLI strategy, accessibility notes,
credits, changelog and translation catalogues are updated.
@chatgpt-codex-connector

ghost commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T13:07:26.691268Z 212edeb PR opened
ℹ️ 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.

ghost 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: 212edebf22

ℹ️ 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 on lines +442 to 444
// Not charged here: a leaf that only feeds a Doom 3 program is
// dropped after it; what the set keeps is charged in store().
auto texture = std::make_shared<MaterialTexture>(materialTextureFromImage(image, reference, path, QStringLiteral("image")));

ghost Nov 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Budget retained Doom 3 image-program leaves

When a Doom 3 material’s image programs use several large source images, this skips charging each leaf if it fits individually, but loadDoom3LeafTexture() retains every leaf in m_leafTextures and loadDoom3Leaf() also caches converted images in m_leafCache until resolution finishes. Their combined memory can exceed the default 192 MiB budget before the final program texture is charged, potentially exhausting memory on a layered material. Bound these intermediate caches or account their contents against the resolver budget.

Useful? React with 👍 / 👎.

}
MaterialTexturePtr texture = decodeDoomPatch(name);
remember(cacheName, texture);
m_patches.insert(key, texture);

ghost Nov 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Limit Doom patches retained during composition

When a Doom composite uses several distinct large, sparse WAD patches, this keeps each decoded patch in m_patches until resolution finishes without charging it against the image budget. Although the shared cache is bounded, these references keep evicted patches alive; the patch pixel and index arrays can therefore consume hundreds of MiB alongside the composite buffers despite the default 192 MiB budget. Make patch retention budget-aware or release patches after composition.

Useful? React with 👍 / 👎.

themuffinator added 2 commits November 16, 2026 13:34
Generated by rename_to_slopstudio.py, as main's d2f7f01 was, so the merge with main below
only has to reconcile real content changes. The tree matches d1a99d9.
… branch

The branch was cut before the rename, so it was first renamed with the
same script main used (4578134). The merge uses main's rename of the
old fork point (d2f7f01) as its base, which leaves only two real
conflicts:

- CHANGELOG.md: both sides' Unreleased entries kept.
- i18n/*.ts: main's catalogues, refreshed with extract_translations.py
  and english_plurals.py for this branch's strings.

Override in Package now keeps adding to a package's existing
vibestudio_overrides script instead of starting a slopstudio_overrides
one beside it, so the game still reads every copy from one file in the
right order. The material CLI smoke test, the manual and MATERIALS.md
cover it.
@themuffinator
themuffinator merged commit 301d671 into main Nov 16, 2026
@themuffinator
themuffinator deleted the codex/hingeworks-alpha5-refinements branch November 16, 2026 18:13
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