If your player character jumps twice as high at 30 FPS as they do on a 144 Hz gaming monitor, you are multiplying physics forces by variable delta time inside frame render steps. Numerical integration errors compound rapidly with fluctuating frame rates.
1. FixedUpdate Physics Accumulator
All physical forces, gravity, and velocities must update inside a deterministic fixed-time accumulator loop. The game advances the physics simulation in strict 0.02s (50 Hz) or 0.0166s (60 Hz) steps regardless of whether the graphics card renders at 30 FPS or 240 FPS.
// Correct Glenn Fiedler Physics Accumulator Loop:
float accumulator = 0.0f;
const float dt = 0.01666f; // Strict 60 Hz physics step
void GameLoop() {
float frameTime = GetFrameDeltaTime();
if (frameTime > 0.25f) frameTime = 0.25f; // Prevent spiral of death
accumulator += frameTime;
while (accumulator >= dt) {
IntegratePhysics(dt); // Physics executes with CONSTANT dt
accumulator -= dt;
}
// Interpolate render state using remaining alpha
float alpha = accumulator / dt;
Render(alpha);
}