this.renderTimer=window.setTimeout(this.renderStep.bind(this),this.simulationInterval);// wait this.renderTimeStep milliseconds and perform the animation step function
this.renderTimer=window.setTimeout(this._renderStep.bind(this),this.simulationInterval);// wait this.renderTimeStep milliseconds and perform the animation step function
}
}
else{
else{
this.renderTimer=window.requestAnimationFrame(this.renderStep.bind(this));// wait this.renderTimeStep milliseconds and perform the animation step function
this.renderTimer=window.requestAnimationFrame(this._renderStep.bind(this));// wait this.renderTimeStep milliseconds and perform the animation step function
}
}
}
}
}
}
@ -75,20 +75,20 @@ class CanvasRenderer {
}
}
}
}
renderStep(){
_renderStep(){
// reset the renderTimer so a new scheduled animation step can be set
// reset the renderTimer so a new scheduled animation step can be set