Skip to content

Commit

Permalink
Potential performance fix, see #326
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Jan 9, 2024
1 parent 08a4141 commit f5a9731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/model/MySolarSystemModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export default class MySolarSystemModel extends SolarSystemCommonModel {
dt *= this.timeSpeedMap.get( this.timeSpeedProperty.value )!;

// Dividing dt into smaller values per step to avoid large jumps in the sim
const desiredStepsPerSecond = 300;
const desiredStepsPerSecond = 30;
const numberOfSteps = Math.ceil( dt * desiredStepsPerSecond );
dt /= numberOfSteps;

Expand Down

0 comments on commit f5a9731

Please sign in to comment.