Skip to content

Async with Workers, SharedArrayBuffer and Atomics #45

Open
@AntonPieper

Description

@AntonPieper

Workers can be blocked using Atomics on a SharedArrayBuffer and the screen buffer can be sent using OffscreenCanvas, therefore it is theoretically possible to load zozlib.js in a worker, block calls and send the screen to the main thread. This does come with an overhead and some complexity. I think this is worth investigating though, as it would be a rather niche (as far as I can tell from a Google search) approach to handling Async in web assembly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions