tengri/Content
Nikolay Petrov b83388e74e feat(movement): Implement fixed timestep physics with interpolation (Stage 12)
BREAKING CHANGE: Movement now runs on deterministic 120Hz physics
- Physics and render states separated
- Visual interpolation for smoothness
- Deterministic physics independent of FPS

Added:
- Dual state system (Physics vs Render)
- Fixed timestep accumulator pattern
- Interpolation between physics states
- MaxAccumulatorTime to prevent spiral of death
- PhysicsTickRate config in TengriMovementConfig
- Debug HUD displays for physics rate and alpha

Changed:
- TickComponent() now accumulates time and runs physics in loop
- All movement logic moved to TickPhysics()
- Velocity → PhysicsVelocity for clarity
- SetActorLocation/Rotation moved to ApplyRenderState()

Performance:
- Added ~0.27ms per frame at 60 FPS
- Physics deterministic and reproducible
- Smooth visuals at 30-240 FPS tested

Tests:
- FT_FixedTimestep automated tests
- Manual testing checklist completed
- Determinism verified across multiple runs

Documentation:
- TDD.md updated with fixed timestep section
- Stage12_DecisionLog.md created
- Inline comments for all new methods

Refs: Roadmap.md Stage 12
2025-12-24 20:46:43 +05:00
..
Blueprints feat(movement): Implement fixed timestep physics with interpolation (Stage 12) 2025-12-24 20:46:43 +05:00
Camera rewrite movement to c++ 2025-12-24 19:34:13 +05:00
Debug rewrite movement to c++ 2025-12-24 19:34:13 +05:00
Input rewrite movement to c++ 2025-12-24 19:34:13 +05:00
LevelPrototyping [code] Stage 1 Complete: Surface Classification System 2025-08-18 00:31:09 +05:00
Levels rewrite movement to c++ 2025-12-24 19:34:13 +05:00
Movement rewrite movement to c++ 2025-12-24 19:34:13 +05:00
Toasts rewrite movement to c++ 2025-12-24 19:34:13 +05:00
UE rewrite movement to c++ 2025-12-24 19:34:13 +05:00
UI rewrite movement to c++ 2025-12-24 19:34:13 +05:00