Skip to content

requestAnimationFrame in WorkerGlobalScope #222

Closed

Description

@svoisen

Description

Allows use of requestAnimationFrame in web workers.

Currently this is unsupported in WebKit.

Rationale

This is necessary for any applications that wish to perform tasks such as animation rendering off the main thread, perhaps in conjunction with OffscreenCanvas.

Specification

https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-animationframeprovider-requestanimationframe

Tests

https://wpt.fyi/results/workers/WorkerGlobalScope_requestAnimationFrame.tentative.worker.html

Activity

  1. moved this to Proposed in Interop 2023on Oct 16, 2022
  2. foolip commented on Oct 17, 2022

    @foolip
    Member

    I see that the test here is tentative. @Ms2ger you added this in web-platform-tests/wpt#12293, do you know if it still needs to be tentative?

  3. Ms2ger commented on Oct 17, 2022

    @Ms2ger

    Looks like the spec change merged in whatwg/html#3677 (Aug 27, 2018) and I marked it as tentative on Aug 3, 2018, so we'd only be four years late marking it not tentative

  4. gsnedders commented on Oct 26, 2022

    @gsnedders
    Member

    Rationale

    This is necessary for any applications that wish to perform tasks such as animation rendering off the main thread, perhaps in conjunction with OffscreenCanvas.

    You say "perhaps", but is there any use-case for this without OffscreenCanvas?

  5. added
    accepted
    on Feb 1, 2023
  6. foolip commented on Feb 1, 2023

    @foolip
    Member

    Thank you for proposing requestAnimationFrame in WorkerGlobalScope for inclusion in Interop 2023.

    We are pleased to let you know that this proposal was accepted as part of the Offscreen Canvas focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.

    For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!

    Posted on behalf of the Interop team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfocus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions