Repository navigation
Stop per-step physics allocations in the modified-collider buffer - #350
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a31140f to
4443fcb
Compare
|
@coderabbitai review |
|
c0173f8 to
c54218c
Compare
* docs: toolchain LFS checkout and localsim on benchmark shard 0 #348 checks out Git LFS in the toolchain job. #351 measures astraweave-localsim on shard 0 of the 14-shard matrix. #216 and #350 stay in progress. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: state the 600s bench limit is per target Compilation stays outside that limit. The aw_build job keeps its 30-minute timeout. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
A settled step allocated 8 times. Three were a full QueryPipeline rebuild after Rapier had already updated that pipeline incrementally. The other five were RigidBodyColliders::update_positions growing a fresh Vec, because PhysicsPipeline::step takes the modified-collider buffer and drops it. The patched rapier3d 0.22 returns that buffer. one_physics_step_allocates_nothing stays at 0. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
c54218c to
b7197b7
Compare
Codex Review SummaryThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…362) * docs: renderer RSS test is green; shards 2 and 4 stay open #355 closed #352. The 50 MB ceiling stays, and the ci-pr skip line stays. #356 split shards 1, 5, and 9. #360 and #361 are in progress. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: pin the status snapshot to 2898799 The current section is 2026-10-17. The toolchain note names that main. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: vendored rapier3d makes a settled step zero-alloc #350 is on main. The patch reuses the modified-collider buffer. An in-house physics engine is not planned work. #262 stays open. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * ci: ignore unmaintained zbus standalone crates RUSTSEC-2026-0370, 0371, and 0372 have no safe upgrade. egui-winit pulls them through accesskit. They were already in the lockfile. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: drop the zbus advisory ignores RUSTSEC-2026-0370, 0371, and 0372 stay unignored. This pull request does not change supply-chain config. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: AccessKit is off and the zbus advisories are resolved #365 builds eframe without AccessKit and moves editor file dialogs to rfd 0.17. RUSTSEC-2026-0370, 0371, and 0372 are gone with no ignore. Click tests are #366, in progress. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: shards 2 and 4 are split and #359 is closed #361 is on main. The fluids GPU timing walk runs only when AW_FLUID_GPU_TIMINGS is set. #224 stays open. #361 leaves the in-progress list. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: editor click step 1 is on main, #366 step 2 stays open #368 covers the six toolbar and menu clicks with synthetic RawInput. egui_kittest waits until accesskit_unix uses zbus 6. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs: link the Rapier vendor note and the unfiled draft #363 records how to re-apply the modified-collider patch. The maintainer write-up stays in-tree and is not filed upstream. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Description
Rebased onto
cbb314b9(#353). The[patch.crates-io]table keeps bothcandle-coreandrapier3d. Cargo.lock still has a singlezip9.0.3.one_physics_step_allocates_nothingallocated 8 times after 30 warmup steps. The assert stays at 0.Five of those are one
Vecgrowing 32, 64, 128, 256, 512 insideRigidBodyColliders::update_positions. Rapier 0.22PhysicsPipeline::stepmem::takes the modified-collider buffer and drops it, so the next step grows a newVecfrom zero.third_party/rapier3dis that crate with the drained buffer returned to the set.The other three were
QueryPipeline::updaterebuilding the QBVH afterpipeline.stephad already calledupdate_incremental. That second rebuild is removed. Character-controller tests still pass. The measured step now reportsallocs=0.Main requires 19 replay cases (
greybox_checkpoint,quest_ticks, andpersist_replayare included). Integrated rigid-body positions are unchanged by buffer reuse. Determinism-replay on this head is the check that those 19 hashes stay byte-identical.Type of change
Security Considerations
rapier3d0.22.0 and patches buffer reuse.Checklist