Repository navigation
Fix E1M1 clipping crashes and browser rendering - #3
Merged
Merged
Conversation
Replace the C-backed protobuf runtime with prost using the existing schema. Preserve field defaults, zero-valued portal targets, and color validation; cover wire compatibility and full map round trips with regression tests. Pin wasm-bindgen to the CLI version used by CI and document web prerequisites and the published bevy_pixels presentation path. Co-authored-by: Xeno <xeno@xenorune.com>
Clip wall segments by parameter against the near plane and frustum instead of testing rounded intersection coordinates against wall bounds. This keeps behind-camera endpoints out of projection and prevents reversed portal spans. Add the exact E1M1 outdoor failure as a full-frame regression at baseline, wide, and tall sizes. Use Bevy platform Instant so browser rendering and stage timing do not panic on the wasm target. Co-authored-by: Xeno <xeno@xenorune.com>
dtcristo
marked this pull request as ready for review
October 2, 2026 21:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
E1M1 could crash when a vertical wall crossed behind the camera: rounded line-intersection bounds left an endpoint unclipped, reversing portal column limits. The browser build also failed in protobuf's C runtime, then panicked on its first frame because renderer timings used
std::time::Instant.Clip walls against near/frustum half-planes by segment parameter, use Bevy's platform clock, and generate the unchanged protobuf schema with pure Rust
prost. Keep the upstream published bevy_pixels 0.17 upgrade, resolve Bevy's 0.19.1 patch, and pin wasm-bindgen and CI's CLI to 0.2.127. Update build instructions, design notes, and renderer follow-up work.Validation:
cargo fmt --all,cargo check --all, and all-feature check passedcargo test --features "sector sector_edit doom_import": 134 tests passedsector_validatejust build-webcompleted, including release wasm and matching bindgen outputMap assets and the protobuf wire schema are unchanged. Temporary QA controls and sweep tooling were removed. The editor still compiles with deprecation warnings from the upstream egui upgrade.
PR CI passed at
7bc718aba1347ac27aed17c976717963ce5801a2, including all-feature checks/tests, both map validators, and the release web bundle. Native E1M1's debug timing averaged about 5.9 ms per frame at 320×240 during Computer Use verification.