mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Call frameCallback() ASAP
This commit is contained in:
parent
a1d6cf97e8
commit
8ab63e6e44
@ -114,6 +114,7 @@ export class WebGL2Player {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.animFrameId = frameCallback(animate);
|
||||||
let draw = true;
|
let draw = true;
|
||||||
|
|
||||||
// Don't draw when FPS is 0
|
// Don't draw when FPS is 0
|
||||||
@ -135,8 +136,6 @@ export class WebGL2Player {
|
|||||||
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, gl.RGB, gl.UNSIGNED_BYTE, this.$video);
|
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, gl.RGB, gl.UNSIGNED_BYTE, this.$video);
|
||||||
gl.drawArrays(gl.TRIANGLES, 0, 6);
|
gl.drawArrays(gl.TRIANGLES, 0, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.animFrameId = frameCallback(animate);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.animFrameId = frameCallback(animate);
|
this.animFrameId = frameCallback(animate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user