Update this.frameRate in filters.
We weren't correctly updating the framerate, which caused us to recheck every 30 frames.
This commit is contained in:
@@ -1212,6 +1212,7 @@ Filter.prototype.draw = async function() {
|
|||||||
});
|
});
|
||||||
if(frameRate && frameRate != this.frameRate) {
|
if(frameRate && frameRate != this.frameRate) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
|
this.frameRate = frameRate;
|
||||||
this.timer = setInterval(() => this.draw(), 1000 / this.frameRate);
|
this.timer = setInterval(() => this.draw(), 1000 / this.frameRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user