bevy/crates
thebluefish 54f0c556f6 Fix winit control flow when re-focusing game (#12239)
# Objective

Fixes #12126

Notably this does not appear to fix the console error spam that appears
to be coming from winit, only the performance bug that occurs when
tabbing out and back into the game.

## Solution

The winit event loop starts out as `ControlFlow::Wait` by default. When
switching to `UpdateMode::Reactive` or `UpdateMode::ReactiveLowPower`,
we repeatedly update this to `ControlFlow::WaitUntil(next)`. When
switching back to `UpdateMode::Continuous`, the event loop is
erroneously stuck at the latest `ControlFlow::WaitUntil(next)` that was
issued.

I also changed how we handle `Event::NewEvents` since the `StartCause`
already tells us enough information to make that decision. This came
about my debugging and I left it in as an improvement.
2024-03-05 22:10:30 +01:00
..
bevy_a11y Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_animation Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_app Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_asset Create imported_assets directory with full path (#12022) 2024-02-27 17:11:42 +01:00
bevy_audio Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_core Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_core_pipeline Pad SkyUniforms to 16 bytes for WASM (#12078) 2024-02-27 17:17:54 +01:00
bevy_derive Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_diagnostic Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_dylib Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_dynamic_plugin Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_ecs Fix SimpleExecutor crash (#12076) 2024-02-27 17:17:54 +01:00
bevy_ecs_compile_fail_tests Deprecated Various Component Methods from Query and QueryState (#9920) 2024-02-04 01:01:59 +00:00
bevy_encase_derive Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_gilrs Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_gizmos Reflect GizmoConfigStore (#12104) 2024-02-27 17:17:54 +01:00
bevy_gltf Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_hierarchy Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_input Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_internal Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_log Remove unnecessary wildcards from LogPlugin and convert warnings to errors. (#12046) 2024-02-27 17:17:54 +01:00
bevy_macro_utils Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_macros_compile_fail_tests Standardize toml format with taplo (#10594) 2023-11-21 01:04:14 +00:00
bevy_math Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_mikktspace Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_pbr Make more things pub in the renderer (#12053) 2024-02-27 17:17:54 +01:00
bevy_ptr Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_reflect reflect: treat proxy types correctly when serializing (#12024) 2024-02-27 17:12:51 +01:00
bevy_reflect_compile_fail_tests bevy_reflect_derive: Clean up attribute logic (#11777) 2024-02-12 15:16:27 +00:00
bevy_render Update wgpu to v0.19.3 and unpin web-sys. (#12247) 2024-03-02 07:44:53 +01:00
bevy_scene Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_sprite Fixed Ui Image slicing (#12047) 2024-02-27 17:17:54 +01:00
bevy_tasks Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_text Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_time Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_transform Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_ui Avoid panicking with non-UI nodes (#12213) 2024-03-01 00:09:18 +01:00
bevy_utils Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_window Release 0.13.0 (#11920) 2024-02-17 09:24:25 +00:00
bevy_winit Fix winit control flow when re-focusing game (#12239) 2024-03-05 22:10:30 +01:00