Skip to content

Use OffscreenCanvas instead of --proxy-to-worker #13652

@janpaul123

Description

@janpaul123

I was trying to figure out how to get WORKERFS to work so I can read from File objects directly, and for that I needed my SDL application to run in a web worker. In order to do that I came across --proxy-to-worker, but ran into its limitations (e.g. it crashes on createVertexArray because getExtension('OES_vertex_array_object') is not implemented).

I was then wondering if --proxy-to-worker should be deprecated altogether, since we can now render to a WebGL OffscreenCanvas in a WebWorker directly. I'm still trying to figure out how to do this exactly, so maybe it's implemented already (-s PROXY_TO_PTHREAD?). In that case it might be good to update the documentation accordingly (and perhaps add a note to --proxy-to-worker that you shouldn't use it, and what the alternative is?). Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions