Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use EventLoopExtWebSys::spawn in bevy_winit #6667

Open
allsey87 opened this issue Nov 17, 2022 · 1 comment
Open

Use EventLoopExtWebSys::spawn in bevy_winit #6667

allsey87 opened this issue Nov 17, 2022 · 1 comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible O-Web Specific to web (WASM) builds

Comments

@allsey87
Copy link
Contributor

See rust-windowing/winit#1714 for the relevant discussion, but the TLDR is that EventLoopExtWebSys::spawn provides 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

@allsey87 allsey87 added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels Nov 17, 2022
@allsey87
Copy link
Contributor Author

I haven't investigated this yet, but @bjorn3 pointed out the following on Discord:

It (EventLoopExtWebSys::spawn) also isn't compatible with the App::run interface as App::run allows dropping the App after it returns

@bjorn3 bjorn3 added A-Windowing Platform-agnostic interface layer to run your app in O-Web Specific to web (WASM) builds labels Nov 18, 2022
@james7132 james7132 removed the S-Needs-Triage This issue needs to be labelled label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible O-Web Specific to web (WASM) builds
Projects
None yet
Development

No branches or pull requests

3 participants