Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Can we avoid blocking the WebVR render thread? #60

Closed

Description

@asajeffrey

Currently, sync_poses is a blocking function, which blocks the WebVR render thread until the next animation frame. This means the render thread can't perform other useful work while waiting for the next animation frame. In Servo, the WebVR render thread is the same as the WebGL thread, so the WebGL thread is blocked, leading to issues such as servo/servo#22914, where webrender is blocked waiting on the WebGL thread.

Activity

  1. asajeffrey commented on Feb 20, 2019

    @asajeffrey
    Author

    A potential fix: asajeffrey@1bfc1e7

  2. MortimerGoro commented on Feb 21, 2019

    @MortimerGoro
    Contributor

    We can do that separation right once we get servo/surfman#133 implemented. That task is blocking other many tasks (e.g. Servo WebVR in FxR). cc @jdm is already anyone working on it or is there any plan to start the work?

    Another solution may be to create another GL shared context but not sure if it's worth the effort because it's going to be throw away code when SurfaceTextures are ready.

  3. asajeffrey commented on Feb 22, 2019

    @asajeffrey
    Author

    The fix I implemented is for the frame data to return a future, and to have the script thread rather than the GL thread block on it.

  4. asajeffrey commented on Feb 26, 2019

    @asajeffrey
    Author

    Fixed by #62

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions