mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-01 19:06:42 +02:00
Call frameCallback() ASAP
This commit is contained in:
@@ -114,6 +114,7 @@ export class WebGL2Player {
|
||||
return;
|
||||
}
|
||||
|
||||
this.animFrameId = frameCallback(animate);
|
||||
let draw = true;
|
||||
|
||||
// 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.drawArrays(gl.TRIANGLES, 0, 6);
|
||||
}
|
||||
|
||||
this.animFrameId = frameCallback(animate);
|
||||
}
|
||||
|
||||
this.animFrameId = frameCallback(animate);
|
||||
|
Reference in New Issue
Block a user