Repository navigation
Codex/hingeworks alpha5 refinements - #3
Conversation
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.
Codex Review Summary: ✅ CompletedThis 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. |
left a comment
There was a problem hiding this comment.
💡 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".
| // 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"))); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 👍 / 👎.
… 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.
Summary
Roadmap Scope
Validation
CHANGELOG.mdhas an Unreleased entry for user-visible changes (python scripts/changelog.py add ...).docs/manual) updated, andpython scripts/generate_offline_guide.pyrun, when user-facing behavior changed.Credits And Licensing
docs/CREDITS.mdupdated for borrowed code, docs, algorithms, specs, UI patterns, or assets.docs/DEPENDENCIES.mdupdated for new or changed libraries.docs/COMPILER_INTEGRATION.md.