LOW: Particles updated twice per frame #6

Closed
opened 2026-05-11 06:16:42 +00:00 by Mark · 0 comments
Owner

Description

this.particles.update(dt) is called in two places each frame:

  1. Inside _loop() at line 250 (variable dt, outside fixed timestep loop)
  2. Inside _update() at line 273, which is called inside the fixed timestep loop (line 248)

Impact

Particle positions are advanced twice as fast as intended. Exhaust effects and visual particles will appear sped up or jittery.

Fix

Remove the this.particles.update(dt) call at line 250 in _loop() since _updateParticles() inside _update() already handles it within the fixed timestep.

## Description `this.particles.update(dt)` is called in two places each frame: 1. Inside `_loop()` at line 250 (variable dt, outside fixed timestep loop) 2. Inside `_update()` at line 273, which is called inside the fixed timestep loop (line 248) ## Impact Particle positions are advanced twice as fast as intended. Exhaust effects and visual particles will appear sped up or jittery. ## Fix Remove the `this.particles.update(dt)` call at line 250 in `_loop()` since `_updateParticles()` inside `_update()` already handles it within the fixed timestep.
Mark closed this issue 2026-05-11 16:00:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/gravity-racer#6
No description provided.