Skip to content

Commit

Permalink
remove OffscreenCanvas for now because of perf issues on Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Sep 24, 2021
1 parent be97323 commit 1531b8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export default class TinySDF {
}

_createCanvas(size) {
if (typeof OffscreenCanvas !== 'undefined') {
return new OffscreenCanvas(size, size);
}
const canvas = document.createElement('canvas');
canvas.width = canvas.height = size;
return canvas;
Expand Down

0 comments on commit 1531b8b

Please sign in to comment.