mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 14:32:06 +00:00
519abbca11
# Objective - On macOS, closing a window by respawning its entity freezes ## Solution - `WindowWrapper` is keeping an `Arc` of the window, to be able to access it from the rendering thread. Winit windows are closed when they are dropped. This need to happen on the main thread on macOS - Dropping it as soon as the window is closed means the last remaining `Arc` will be in the rendering thread - This PR keeps the `Arc` for one frame in the rendering thread before actually dropping it |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |