Skip to content

Run playground code in a Web Worker #6

@PaperPrototype

Description

@PaperPrototype

This already technically works and can be enabled via disableWebWorker but I broke it when I added CanvasRenderingContext2D and Input

  • Context2D - Need to pass an OffscreenCanvas to the initializeWasmSharpModule instead of HTMLCanvasElement
  • Input - Send input through post message and then call the assemblyExports.Input methods using Comlink (eg. assemblyExports.Input.CallMouseUp(x, y)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions