bevy/crates/bevy_winit/src
Dusty DeWeese 927973ce6a Don't update when suspended to avoid GPU use on iOS. (#2482)
# Objective

This fixes a crash caused by iOS preventing GPU access when not focused: #2296

## Solution

This skips `app.update()` in `winit_runner` when `winit` sends the `Suspended` event, until `Resumed`.

I've tested that this works for me on my iOS app.
2021-07-16 00:50:39 +00:00
..
converters.rs Bevy ECS V2 (#1525) 2021-03-05 07:54:35 +00:00
lib.rs Don't update when suspended to avoid GPU use on iOS. (#2482) 2021-07-16 00:50:39 +00:00
winit_config.rs fix rustdoc warnings (#1437) 2021-02-22 03:59:35 +00:00
winit_windows.rs Add Window Resize Constraints (#1409) 2021-03-03 02:56:50 +00:00