ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

Use offscreen canvas if the global scope is worker

Open hajimehoshi opened this issue 5 years ago • 5 comments

https://developers.google.com/web/updates/2018/08/offscreen-canvas https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas

If Ebiten can work on a worker, multiple Ebiten instances can work in theory.

hajimehoshi avatar Jan 28 '20 18:01 hajimehoshi

We need to have API to pass an (offscreen) canvas. maybe.

hajimehoshi avatar Jan 28 '20 18:01 hajimehoshi

https://caniuse.com/offscreencanvas

Only Chrome (and Edge) support this.

hajimehoshi avatar Dec 07 '20 14:12 hajimehoshi

OffscreenCanvas landed in Firefox 105, still only at 73% usage though. Although it's not the worst to expect users to use a fairly new browser for a feature like this.

superloach avatar Aug 30 '22 18:08 superloach

https://caniuse.com/offscreencanvas Now most modern browsers support this

EDIT: The latest Safari doesn't support it yet.

hajimehoshi avatar Jul 03 '23 16:07 hajimehoshi

In workers, inputting would not work, but probably this is fine...

hajimehoshi avatar Aug 04 '23 19:08 hajimehoshi