Skip to content

Celtium 0.3.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 08:14
· 3299 commits to main since this release

Celtium 0.3.0

387 commits (172 landings), 380 files, +34,356 / −8,455 lines since 0.2.5. The bulk is three waves of GL decoupling from Celeritas (PRs #426–#428), the 2026-11-21 all-out campaign (every one of the ~87 findings from a ten-lane code audit was triaged and disposed of), the shader-pack route on the in-core pipeline, and work driven by reporter issues. Two headlines. First, shader-pack terrain now reaches the presented image with its color intact — see "Shadows and shader packs". Second, the dynamic-lighting gain is measured. What is not established is stated plainly under "Known issues / not established". The test suite grew to common 119 / celtium-vulkan 1,078 / forge122 50 (combined full gate, zero failures and errors).

Shadows and shader packs: terrain color now reaches presentation

The gbuffers terrain programs of shader packs (Complementary Shaders / BSL) are translated and drawn on celtium's in-core pipeline, without going through the GL stub. This release removes the loss that happened after the draw: the color was drawn, but it never reached the presented image.

  • What changed, measured. Complementary was run on the PC (RX 6400) in a rebuilt pristine pillar scene (five stone pillars and a floor). Before the fix, the presented image showed the pillars and floor only as untextured dark silhouettes in fog. After the fix, the presented image carries the stone texture on the pillars with per-face directional shading, the patterned floor running to the horizon, and the pack's clouds in the sky. The terrain color and shading the pack draws now survive to presentation.
  • Root cause. The deferred output was being stolen by the water pass (gbuffers_water) behind it. The depth-less deferred1 publication could not be reused by the depth-carrying water pass, which claimed its own pair, overwrote the publication, and erased the deferred output in the per-frame clear — even when the water pass drew no geometry. A second defect sat in the color handoff that guards against this: when its source was chosen too broadly, it copied the previous frame's final image into the terrain pair and blew the frame out to white.
  • The fix. Passes with no geometry return early so they cannot break the publication; MRT windows with depth use a depth-preserving render-pass variant; and the handoff source is confined to pairs actually written in the current frame. The fix's full gate passed all 1,235 tests (zero failures, zero errors).
  • Also in: the fix for the presented image collapsing to a single-color void (a pre-transform wrongly applied to mod programs) and the terrain color publication fixes. The COLOR-form validation errors 00344 / 00900 measured 20 → 0. The DEPTH form of 09600 is disposed of, but 10 instances of VUID-09600 remained in the Complementary run above (this is not written as resolved).
  • Updated after release (proof leg on the shipped jar). Cast-shadow shapes are now confirmed for Complementary: at pinned world time 1000 (~15° sun) a soft-edged dark wedge extends anti-sun from a pillar's base across the floor, and the same band is the brightest segment at noon — time-dependent and anchored, i.e. a real cast shadow. BSL v10.1.8 has now been run against this fix: it presents (the right ~42% is a real textured scene), but 57.8% of the frame on the left is pure black (mean exactly 0.0, stable, curved boundary) and no cast shadows are discernible — a separate BSL black-wedge defect remains. The wedge's root cause has since been identified (a NaN produced inside the pack's volumetric-light path) and a guarded fix has landed on main; it is not in v0.3.0 or v0.3.1, and a verification leg is still pending, so no fix is claimed yet. VUID-09600 remains at 10 instances, unchanged by the fix.

Dynamic lights (item 430): gain measured

  • Fixed the root cause of dynamic lights not affecting terrain: the camera subtraction was applied twice (u_RegionOffset passed origin − camera while the shader subtracted the camera again), inflating distances so the light raise was identically zero.
  • The gain is measured. In a dark scene (koenigsegg-agera, Intel HD Graphics 620, a torch item exposed in a fixture scene, one run each of OFF and ON), mean luminance of the floor-centre region rose from OFF 28.62 to ON 52.28 (+23.65). Control regions were essentially unchanged (sky +0.06, stone top +0.31, floor left edge +2.31), and the full-frame mean went 29.99 → 35.52. Only the floor near the light source rises; the distance does not — the correct falloff shape. In the instrumentation, ON fired the funnel's first raise at the moment the light source appeared; OFF recorded zero hits and zero raises.
  • These are functional-run numbers on HD 620, not a performance yardstick on RX 6400.
  • The funnel census (FUNNEL_SUMMARY) is now also printed at world exit. It previously had no call sites at all and depended on a JVM shutdown hook, so it never reached the harness log.

Reporter issues

  • #422 (Karnatour, RX 7900 XTX): desk-side root causes for all four symptoms are fixed and ship in this release. (1) The purple tiles on the loading screen point to an RDNA3 surface-compression (DCC) inconsistency; the present path now defaults to transfer-only and its barriers were completed. (2) The world drawn offset by +y200 and leaves hanging in the air were caused by a single terrain uniform buffer being overwritten by in-flight writes; uniforms are now split into a per-slot ring. (3) Black water and missing leaves: the reporter's own log showed the terrain frame budget cap (4M vertices) being reached with batches dropped, so the default cap is removed (an explicit setting is still honoured). The full gate is green. Confirmation on the reporter's RX 7900 XTX is still outstanding — this is not written as verified fixed on that hardware. A retest on 0.3.0 is requested.
  • #423 (밥다섯, GTX 1650 Ti, native crash in nvoglv64 on world creation): the fix itself shipped in 0.2.5; the reporter's real-hardware re-confirmation is still outstanding.
  • #424 (yakan12, batched entity models render nothing with Efficient Entities): the original mechanism was addressed in 0.2.5. The residual fix — removal of the mapping re-read lifetime cap (64) — ships for the first time in this release. A retest on 0.3.0 is requested; this is not written as fixed.
  • #425 (밥다섯, device lost during renderer reload teardown crashes the client): triage still waits on the reporter's logs, but defensive hardening ships in this release: the SimpleWorldRenderer rebuild destroy no longer aborts on exception, and the GPU backend's delete releases settled resources in stages and always detaches its registration even when a stage fails.
  • Item 529 (밥다섯, vkCreateDevice fails with VkResult -3 after a renderer reload and the client fails hard): a graphics-device creation failure now bundles the result code, device name, enabled extensions and features, and the previous in-process device-loss record into the error. The fail-hard path was hardened, and attribution instruments for deferred-batch device losses (I1–I7) are in.

Fixed (crashes, hangs, lifetime)

  • An exception in the render-section occlusion search could leave the inFlight flag set and freeze the frame every frame.
  • RenderListManager inFlight leaks, and the teardown retryability contract (shutdown as a no-op contract, destroy in separate stages).
  • The swapchain outOfDate verdict had no consumer and could hang acquisition; repeated acquire failures now raise the failure upward.
  • If swapchain creation keeps failing, the client now escalates to a crash report at a cap instead of hanging on a silent black screen.
  • Retire-queue entries could destroy resources of a previous device; entries are now tagged by owning device, deferred cleanup destroyers can no longer run on a successor device, and the device-lost exits of VulkanContext.delete now also drop the pipeline cache and retirements.
  • GPU resources owned by a retired device could be released twice after device loss, a native-crash path; double destruction of a Vulkan context that never owned a device is also fixed.
  • Command-buffer release now defers fences that still point at live submissions; repeated waits on the same fence under queue contention could stall progress.
  • Deferred texture batches are submitted before the staging ring is reused, the image is recreated, or delete() runs.
  • Deferred lifecycle accounting on the upload path (on failure and at teardown) and an arena growth guard.
  • A failing teardown during renderer reload (resource reload) is now recorded and the new renderer is still created, instead of the teardown failure turning into a crash (hardening from the #425 report).
  • A config file that is empty, whitespace or null — or a quality of null — no longer freezes the settings into read-only defaults that cannot be saved.
  • The rebuild dedup set in SimpleWorldRenderer is confined to the render thread.

Fixed (rendering and display)

  • A LightCache key-packing collision that could swap upper/lower brightness at negative z (keys now use the vanilla BlockPos.toLong layout).
  • Chain-pair color attachments lost their layout publication, producing validation errors 00344 / 00900 (measured 20 → 0). The validation error when a depth texture was used as a color target (the DEPTH form of VUID-09600) is also disposed of.
  • Distant leaves rendered see-through (the leaves quality setting never reached the translucency path).
  • Vertex normals were always bypassed due to reading the wrong settings class.
  • The green component of the fog color was missing from the fog computation.
  • Cloud color and brightness were always white because the cloud color publication was missing.
  • The font atlas reused names across generations, a source of garbled text.
  • The spawn-portal animation did not take its proper purple color.
  • On integrated GPUs, draw-range vertex indices were not widened to 32 bits and rendering broke.
  • One cause of item-frame maps not rendering (a name-resolution mismatch for DynamicTexture). For the remainder, see "Known issues".
  • Terrain record path: pass-state restore on the fallback, whole-pair acquisition for the bound target, merge-run bind order, refusal of depth copies onto the same image.

Fixed (mod programs and the GL compatibility layer)

  • Push-route uniforms are frozen at prepare time (the reuse bug that corrupted them mid-draw). Stage classification is by glCreateShader; varying validation and uniform initializers are carried; location name-hash collisions are counted instead of silently overwritten; suppressed mod-program reports are aggregated.
  • Mod program link status (LINK_STATUS / VALIDATE_STATUS) and info logs are now answered from the actual link result, on both the LWJGL2 and LWJGL3 paths. They previously reported success unconditionally, so a program that failed to link could vanish silently.
  • Shader translation: the comment lexer could eat real code (uniforms vanished from the interface) and declarations were wrongly extracted from #define bodies; both fixed. texture1DProj / texture3DProj are now translated, and declaration extraction follows in-source conditionals (#ifdef). Shadow sampler types (sampler2DShadow and family) are deliberately passed through rather than refused, because real packs (Complementary / BSL) use them.
  • A sampler naming an out-of-range texture unit silently rendered with unit 0's texture; it is now refused by name. Shader-compile failure logs now carry the stage (vertex / fragment), and unsupported-feature reports carry the lowering reason.
  • ARB/EXT-suffixed GL entry points used by mods (FBO, VBO, shader-object, query and copy-image families) were missing from the stub and returned 0 as unknown symbols; they are now registered (39 functional aliases + 37 no-op parity entries). A 0 return made callers misread the target as the default framebuffer — a silent-corruption shape.
  • Lightmap ID supply failures were indistinguishable from "not installed" and silent; failures are now recorded (count and first cause).
  • LWJGL: a service class could be killed for the JVM's lifetime by calling GL during class init; the degraded LWJGL service no longer freezes as a static singleton; the shared pipeline cache is keyed by device.
  • Mixin hook names are written in both MCP and SRG forms — hooks that were dead in production are live again. Two wrong SRG targets corrected (ChunkEntityMembershipMixin, RenderItemMixin). A regression test now guards @unique member visibility across all mixins (the startup-failure class seen with VanillaFix).
  • The mod-program prepare memo is now keyed by SPIR-V identity, and item mesh caches are cleared from RenderItem's reload callback, so stale programs and meshes no longer survive a resource reload.
  • Oversized mod-program uniform blocks are routed through a uniform buffer. Standalone allocated textures are materialized for mod samplers (item 537).
  • A compatibility break where a field that mods write by name had been removed, breaking mod initialization (Demonica): the static is restored as a compatibility surface kept in sync with the runtime value. Removing a mod-written static is treated as a compatibility break from here on.
  • Block rendering is routed through BlockRendererDispatcher again (item 490, a port of the upstream Celeritas fast-renderer change), restoring compatibility with mods that replace the dispatcher.
  • Rendering-API gaps reported from the threads (glGenBuffers / glBindBuffer / glBufferData and friends) are filled, and glCopyImageSubData is served between captured texture levels.

Compatibility

  • VanillaFix coexistence confirmed (its startup crash was triaged and resolved; the texture-atlas visibility gate was rebuilt as a HEAD injection so the two can coexist).
  • FoamFix 0.10.15 coexistence confirmed (RX 6400, fixture runs with healthy presented images). Note that FoamFix's fast animated-texture path does not engage in this stack — Cleanroom's LWJGL2 layer does not advertise OpenGL 4.3 / ARB_copy_image, so FoamFix itself falls back to the slow path. celtium's glCopyImageSubData wiring and its unit pin are in.
  • Particle Culling is compatible.
  • A raster occlusion culling (useRasterOcclusionCulling) ON/OFF comparison run showed no section-shaped holes (the presented-image difference was only mob positions and poses over time).
  • The startup refusal list and the addon surface checks were synced with the implementation. The Phosphor refusal message now points to Pulsar, matching the README.

Performance

  • Several waves of optimization landed: hot-path allocation cuts, growable descriptor pools, viewport/scissor reuse, a particle repack cache, descriptor-set retirement and reclaim, and more. Font atlas consolidation is implemented, but no measured gain is claimed for it.
  • Reference figures (the project's README measurement table): in the heavy modpack scene Supersymmetry (188 mods) against Celeritas 2.5.0-dev, celtium measured p50 +2.5% / p95 +7.0% FPS on RX 6400 and p50 +6.4% / p95 +3.1% on Intel UHD 630 — ahead on both GPUs in that scene.
  • Controlled measurement (generated-world flight scene, koenigsegg-agera / Intel HD Graphics 620, 1280×720, render distance 12, warm window): celtium frame-time P50 measured 16.55 / 19.04 / 19.00 ms across three runs (363 / 331 / 335 frames). Celeritas on the same scene measured about 8.1 ms — on this scene and this GPU a gap remains. A re-measurement on main after the pack publication fixes also gave P50 17.27 ms (333 frames): no regression from the campaign's changes. The residual is concentrated in the frame budget's "other" bucket, which is the next front.
  • The measurement path itself was fixed: the present-readback diagnostic switch never reached the harness configuration. Early informal comparison figures were taken with that readback running on every frame and are withdrawn as product numbers.
  • The generated-world flight numbers are functional-environment numbers on HD 620, not a performance yardstick on RX 6400.

Refactoring and internals

  • The three GL-decoupling waves (PRs #426–#428) are this release's foundation: GL decoupling, deletion of dead GL classes, allocation cuts, and translator and worker-thread fixes.
  • Three waves of giant-class splits; the FFM upcalls and trampoline plumbing were extracted from CeltiumGlStub.
  • Six options with no consumer and three never-read private fields were removed. The fast block renderer toggle is now persisted.
  • Embeddium compatibility-surface classes that looked unreferenced turned out — verified in bytecode — to be linked by name from the Iris bundled with Demonica; they are pinned by a test instead of deleted.
  • Test flags were consolidated behind the celtium.validation master switch. The forge122 test suite is wired into CI, as are three previously orphaned CPU contract checks.

Diagnostics and instruments

  • The terrain pass GPU time (the terrainGpu column) now actually returns values in real runs. The readback previously read the newest frame's unconfirmed state and always collapsed to 0.0; it is now snapshot-based per submission, and terrain GPU time is filed as its own frame-budget column (real values confirmed in a real run).
  • The sky-flattening defect (item 535) was isolated by separation runs: it occurs only when fog application and depth test are in their bad states together (RX 6400, ATM3 fixture, one run per condition; lifting either one alone preserves the gradient). The factor is identified as that conjunction; a permanent fix is for a later release.
  • The ledger cost of upload reservations (reserve) can now be measured separately from the upload-time totals (item 363).
  • Pass-timing switches were routed through HarnessConfig and their tables confined to the context thread. The sky census now names the captured target identity (item 383).
  • Crash breadcrumbs: the last window-pass begin arguments are written through to a file (item 536).

Known issues / not established — stated plainly

  • Darkening from the in-core terrain shadow lookup alone is not established. The lookup (terrain shaders sampling the routed shadow pass depth) ships and its application counters run, but no shadow-shape darkening has been measured in the presented image from that lookup. It is a separate matter from the pack route's progress above.
  • Cast-shadow shapes were verified after release. The proof leg on the shipped jar confirmed them for Complementary (see "Shadows and shader packs"). BSL presents on the same jar but carries a separate black-wedge defect — see the next item.
  • BSL black-wedge defect (confirmed after release). On the shipped jar, BSL v10.1.8 presents a textured scene on the right ~42% of the frame, but the left 57.8% is pure black with a stable curved boundary, and no cast shadows are discernible. This is a separate defect from the pre-fix full-black presentation and remains open in this release. Complementary cast-shadow shapes are confirmed on the same jar (see "Shadows and shader packs").
  • HUD caching is not in celtium. Closed by measurement: in the measured run (300 HUD frames on a generated world), 0 of 575 HUD groups were cacheable (0.0%), so the cache's premise did not hold. The HUD is drawn every frame, as before.
  • Sign-text buffering is not implemented. Its dominance gate (Gate 0: a 216-sign scene against a blank control) did not pass, so it was not built.
  • Item-frame maps may still have a residual issue where a group closes before the map reaches drawing. The NPE that came from save-side inconsistency (map color indices beyond vanilla's definitions) measured 270 → 0 after the save was repaired. The celtium-side remainder has its discrimination instrument ready, but no conclusion yet.
  • #422, #423 and #424 are not written as fixed until the reporters confirm on real hardware (see "Reporter issues").

Credits

  • This release includes knowledge derived from vkmod-next (VLOD-ZDOV/VulkanMod-Next, LGPL-3.0), the successor project to VulkanMod. Per the author's terms, copy-pasted code is credited in code comments, and the project itself is credited in the README and here.
  • Thanks to the reporters who filed issues and cooperated with diagnostic builds and log returns.