this.timer=window.requestAnimationFrame(this._animationStep.bind(this),this.renderTimestep);// wait this.renderTimeStep milliseconds and perform the animation step function
if(!this.timer){
varua=navigator.userAgent.toLowerCase();
if(ua.indexOf('safari')!=-1){
if(ua.indexOf('chrome')<=-1){
// safari
this.timer=window.setTimeout(this._animationStep.bind(this),this.renderTimestep);// wait this.renderTimeStep milliseconds and perform the animation step function
}
else{
this.timer=window.requestAnimationFrame(this._animationStep.bind(this),this.renderTimestep);// wait this.renderTimeStep milliseconds and perform the animation step function
}
}
else{
this.timer=window.requestAnimationFrame(this._animationStep.bind(this),this.renderTimestep);// wait this.renderTimeStep milliseconds and perform the animation step function