Skip to content

low_power example does not work on WASM #14214

Open
@aevyrie

Description

Bevy version

0.14

What you did

  1. Run the web example: https://bevyengine.org/examples/window/low-power/
  2. Press space until you get to the third mode, with RequestRedraw being sent

What went wrong

The event loop should run continuously as long as the event is being sent. However, it does not.

Additional information

let _ = event_loop_proxy.send_event(WakeUp); was added to the example, but the docs all refer to RequestRedraw. Replacing the event loop proxy wakeup with RequestRedraw appears to fix the behavior.

The event loop proxy is useful when waking from another thread, but it appears it is not a direct replacement for the bevy event on all platforms.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions