-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Use EventLoopExtWebSys::spawn in bevy_winit #6667
Copy link
Copy link
Open
Labels
A-WindowingPlatform-agnostic interface layer to run your app inPlatform-agnostic interface layer to run your app inC-FeatureA new feature, making something new possibleA new feature, making something new possibleO-WebSpecific to web (WASM) buildsSpecific to web (WASM) builds
Metadata
Metadata
Assignees
Labels
A-WindowingPlatform-agnostic interface layer to run your app inPlatform-agnostic interface layer to run your app inC-FeatureA new feature, making something new possibleA new feature, making something new possibleO-WebSpecific to web (WASM) buildsSpecific to web (WASM) builds
See rust-windowing/winit#1714 for the relevant discussion, but the TLDR is that
EventLoopExtWebSys::spawnprovides a work around for the hack of using an exception to get the event loop working on the web platform.rust-windowing/winit#2208 is included in winit 0.27.0 which is included in Bevy 0.9, however, bevy_winit is current not using this feature.
Other related issues: rust-windowing/winit#900 rust-windowing/winit#1199