LOW: Particles updated twice per frame #6
Labels
No labels
blocked:needs-decision
blocked:no-changes
feature-request
quickfix
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/gravity-racer#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Description
this.particles.update(dt)is called in two places each frame:_loop()at line 250 (variable dt, outside fixed timestep loop)_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.