fix, pt. 3
This commit is contained in:
parent
172f67c7ca
commit
557a0eef46
@ -307,8 +307,8 @@ class AardGl {
|
|||||||
//
|
//
|
||||||
|
|
||||||
if (!cwidth) {
|
if (!cwidth) {
|
||||||
cwidth = this.settings.active.aard.Gl.canvasDimensions.sampleCanvas.width;
|
cwidth = this.settings.active.aardGl.canvasDimensions.sampleCanvas.width;
|
||||||
cheight = this.settings.active.aard.Gl.canvasDimensions.sampleCanvas.height;
|
cheight = this.settings.active.aardGl.canvasDimensions.sampleCanvas.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.canvas) {
|
if (this.canvas) {
|
||||||
@ -472,7 +472,7 @@ class AardGl {
|
|||||||
this._exited = false;
|
this._exited = false;
|
||||||
|
|
||||||
// set initial timestamps so frame check will trigger the first time we run the loop
|
// set initial timestamps so frame check will trigger the first time we run the loop
|
||||||
let lastFrameCheckStartTime = Date.now() - (this.settings.active.aard.Gl.timers.playing << 1);
|
let lastFrameCheckStartTime = Date.now() - (this.settings.active.aardGl.timers.playing << 1);
|
||||||
|
|
||||||
const frameCheckTimes = new Array(10).fill(-1);
|
const frameCheckTimes = new Array(10).fill(-1);
|
||||||
let frameCheckBufferIndex = 0;
|
let frameCheckBufferIndex = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user