feat(timestep): fixed 120 Hz timestep accumulator (demoa-4cp) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "computercrack-sandfortress-ci/feature/fogleap-backbone"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Loop result for demoa-4cp (app: fixed timestep accumulator, F-INPUT-003): commits
221c839(tests) anda035461(implementation), changes onlycrates/fogleap/src/timestep.rsandcrates/fogleap/tests/timestep.rs. The base has the newer0ba103a, which is intended (no rebase/merge). Pushed unchanged at the maintainer's request despite known stage 2 findings (remainder not clamped at 0.0,Refs:trailer missing), details in the comment. 🤖 Generated with Claude CodeAudit stage 1 (Forge Gateway): no findings.
Stage 2 review: feature/fogleap-backbone (
a035461) against feature/fogleap-backbone (897d242), ticket demoa-4cpStage 1 (audit-preview):
Not run:
cargois not installed in the review VM, so neither the tests norscripts/static-check.shwere run here.Security
crates/fogleap/src/timestep.rsandcrates/fogleap/tests/timestep.rschange. No Cargo, scripts, assets or CI changes, noFOGLEAP_BLESS, no I/O. No documented boundary is crossed (quality.md: security "low").as u32cast, which lands in the clamp branch and returns 8 with remainder 0.0. No panic, no DoS.+inforf64::MAX.Code review
Standards
221c839,a035461) lack theRefs: demoa-4cptrailer that CONTRIBUTING.md:18 requires ("Commit messages:<type>(<scope>): <description>with aRefs: <ticket>trailer").120.0appears twice as a literal (design.md:31 namesfogleap_core::TICKS_PER_SECOND).is_nan() || is_infinite()could be!is_finite().Spec
timestep.rs, else branchself.remainder -= n as f64 / 120.0;). Because of+1e-9, n can round up and the remainder becomes slightly negative. Fix:self.remainder = (self.remainder - n as f64 / 120.0).max(0.0);.Architecture
tests/cannot reach it because the field is private.frame(.., 10.0/120.0, ..)to give 10 ticks and30.0/120.0to give 30 ticks. Through thisAccumulatorboth are capped at 8 (MAX_TICKS_PER_FRAME), so fya's tests cannot be met as written. Fix the fya ticket before seeding it.TICKS_PER_SECONDinstead of the literal. Noalpha()for interpolation (nobody asks for it so far).Count
Superseded: its commits (
221c839,a035461, the merge0f2b954and the fixd88649f) are on feature/fogleap-backbone, so this PR has no diff left. Closing; the backbone reaches review as one PR at its end.Pull request closed