Is it possible to use the OffscreenCanvas Web API? #535
Unanswered
marcoripa96
asked this question in
Question and Answer
Replies: 1 comment
-
I think the using OffscreenCanvas to offload Unity WebGL CPU burdens to a different worker is critically important feature - especially during the initial heavy loading phase. Without this feature Unity WebGL can and will make other JS logic and UI unresponsive, which pretty much pisses of every user and ruins the experience. It's not impossible to pull this off, but apparently not easy either. Readers of this issue probably already found this example of a case where it was accomplished with Unity WebGL in 2019: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As the title question suggest, I came across this web API https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas, is it possible to have the webgl computation in a web worker?
It looks like the
transferControlToOffscreen
function must be called before getting the rendering context of the canvas.Beta Was this translation helpful? Give feedback.
All reactions