Skip to content

Commit

Permalink
fix: adds willReadFrequently option to improve getImageData performan…
Browse files Browse the repository at this point in the history
…ce (#902)
  • Loading branch information
2xAA committed May 4, 2024
1 parent 23b00a5 commit c1fedad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/application/plugins/grab-canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const mappingContext = mappingCanvas.getContext("2d", {
// (lights don't have an alpha channel, so let's drop it)
alpha: false,
desynchronized: true,
imageSmoothingEnabled: false
imageSmoothingEnabled: false,
willReadFrequently: true
});

export default {
Expand Down

0 comments on commit c1fedad

Please sign in to comment.