Skip to content

Commit

Permalink
willReadFrequently setting for getContext
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Nov 24, 2023
1 parent 7305d4b commit 20ecb9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/ARnft.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/src/renderers/CameraViewRenderer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/renderers/CameraViewRenderer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/renderers/CameraViewRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class CameraViewRenderer implements ICameraViewRenderer {

constructor(video: HTMLVideoElement) {
this.canvas_process = document.createElement("canvas");
this.context_process = this.canvas_process.getContext("2d", { alpha: false });
this.context_process = this.canvas_process.getContext("2d", { alpha: false, willReadFrequently: true });
this._video = video;
this.target = window || global;
this._frame = 0;
Expand Down

0 comments on commit 20ecb9e

Please sign in to comment.