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 authored Oct 19, 2023
1 parent 30ac2b3 commit 63c2afd
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 63c2afd

Please sign in to comment.