bevy/crates/bevy_winit/src
Torstein Grindvik 8b21ee45c0
Allow Bevy to start from non-main threads on supported platforms (#10020)
# Objective

Allow Bevy apps to run without requiring to start from the main thread.
This allows other projects and applications to do things like spawning a
normal or scoped
thread and run Bevy applications there.

The current behaviour if you try this is a panic.

## Solution

Allow this by default on platforms winit supports this behaviour on
(x11, Wayland, Windows).

---

## Changelog

### Added

- Added the ability to start Bevy apps outside of the main thread on
x11, Wayland, Windows

---------

Signed-off-by: Torstein Grindvik <torstein.grindvik@nordicsemi.no>
Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com>
Co-authored-by: James Liu <contact@jamessliu.com>
2023-10-06 13:26:06 +00:00
..
accessibility.rs Various accessibility API updates. (#9989) 2023-10-02 21:22:52 +00:00
converters.rs Add option to toggle window control buttons (#9083) 2023-07-23 01:02:40 +00:00
lib.rs Allow Bevy to start from non-main threads on supported platforms (#10020) 2023-10-06 13:26:06 +00:00
system.rs Rename RemovedComponents::iter/iter_with_id to read/read_with_id (#9778) 2023-09-15 12:37:20 +00:00
web_resize.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
winit_config.rs Change WinitPlugin defaults to limit game update rate when window is not visible (#7611) 2023-08-02 23:41:23 +00:00
winit_windows.rs Various accessibility API updates. (#9989) 2023-10-02 21:22:52 +00:00