Skip to content

Commit 753ee25

Browse files
committed
Merge branch 'master' into ch-shader-defs
2 parents d7b37f5 + 596bed8 commit 753ee25

File tree

125 files changed

+2767
-1539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+2767
-1539
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ crates/*/target
33
**/*.rs.bk
44
Cargo.lock
55
.cargo/config
6+
.cargo/config.toml
67
/.idea
78
/.vscode
8-
/benches/target
9+
/benches/target

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ current changes on git with [previous release tags][git_tag_comparison].
2323
- [Added new Bevy reflection system][926]
2424
- Replaces the properties system
2525
- [Add removal_detection example][945]
26+
- [Add support for Apple Silicon][928]
27+
- [Allow windows to be maximized][1001]
2628

2729
### Changed
2830

@@ -39,6 +41,7 @@ current changes on git with [previous release tags][git_tag_comparison].
3941
- [Use `mailbox` instead of `fifo` for vsync on supported systems][920]
4042
- [Break out Visible component from Draw][1034]
4143
- Users setting `Draw::is_visible` or `Draw::is_transparent` should now set `Visible::is_visible` and `Visible::is_transparent`
44+
- [`winit` upgraded from version 0.23 to version 0.24][1043]
4245

4346
### Fixed
4447

@@ -66,11 +69,14 @@ current changes on git with [previous release tags][git_tag_comparison].
6669
[917]: https://github.com/bevyengine/bevy/pull/917
6770
[920]: https://github.com/bevyengine/bevy/pull/920
6871
[926]: https://github.com/bevyengine/bevy/pull/926
72+
[928]: https://github.com/bevyengine/bevy/pull/928
6973
[931]: https://github.com/bevyengine/bevy/pull/931
7074
[934]: https://github.com/bevyengine/bevy/pull/934
7175
[945]: https://github.com/bevyengine/bevy/pull/945
7276
[955]: https://github.com/bevyengine/bevy/pull/955
77+
[1001]: https://github.com/bevyengine/bevy/pull/1001
7378
[1034]: https://github.com/bevyengine/bevy/pull/1034
79+
[1043]: https://github.com/bevyengine/bevy/pull/1043
7480

7581
## Version 0.3.0 (2020-11-03)
7682

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ path = "examples/asset/asset_loading.rs"
177177
name = "custom_asset"
178178
path = "examples/asset/custom_asset.rs"
179179

180+
[[example]]
181+
name = "custom_asset_io"
182+
path = "examples/asset/custom_asset_io.rs"
183+
180184
[[example]]
181185
name = "audio"
182186
path = "examples/audio/audio.rs"
@@ -193,10 +197,18 @@ path = "examples/diagnostics/print_diagnostics.rs"
193197
name = "event"
194198
path = "examples/ecs/event.rs"
195199

200+
[[example]]
201+
name = "fixed_timestep"
202+
path = "examples/ecs/fixed_timestep.rs"
203+
196204
[[example]]
197205
name = "startup_system"
198206
path = "examples/ecs/startup_system.rs"
199207

208+
[[example]]
209+
name = "state"
210+
path = "examples/ecs/state.rs"
211+
200212
[[example]]
201213
name = "system_chaining"
202214
path = "examples/ecs/system_chaining.rs"

crates/bevy_app/src/app.rs

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::app_builder::AppBuilder;
2-
use bevy_ecs::{ParallelExecutor, Resources, Schedule, World};
2+
use bevy_ecs::{Resources, Schedule, World};
33
#[cfg(feature = "trace")]
44
use bevy_utils::tracing::info_span;
55

@@ -30,9 +30,6 @@ pub struct App {
3030
pub resources: Resources,
3131
pub runner: Box<dyn Fn(App)>,
3232
pub schedule: Schedule,
33-
pub executor: ParallelExecutor,
34-
pub startup_schedule: Schedule,
35-
pub startup_executor: ParallelExecutor,
3633
}
3734

3835
impl Default for App {
@@ -41,16 +38,12 @@ impl Default for App {
4138
world: Default::default(),
4239
resources: Default::default(),
4340
schedule: Default::default(),
44-
executor: Default::default(),
45-
startup_schedule: Default::default(),
46-
startup_executor: ParallelExecutor::without_tracker_clears(),
4741
runner: Box::new(run_once),
4842
}
4943
}
5044
}
5145

5246
fn run_once(mut app: App) {
53-
app.initialize();
5447
app.update();
5548
}
5649

@@ -61,34 +54,15 @@ impl App {
6154

6255
pub fn update(&mut self) {
6356
self.schedule
64-
.initialize(&mut self.world, &mut self.resources);
65-
self.executor
66-
.run(&mut self.schedule, &mut self.world, &mut self.resources);
67-
}
68-
69-
pub fn initialize(&mut self) {
70-
#[cfg(feature = "trace")]
71-
let startup_schedule_span = info_span!("startup_schedule");
72-
#[cfg(feature = "trace")]
73-
let _startup_schedule_guard = startup_schedule_span.enter();
74-
self.startup_schedule
75-
.initialize(&mut self.world, &mut self.resources);
76-
self.startup_executor.initialize(&mut self.resources);
77-
self.startup_executor.run(
78-
&mut self.startup_schedule,
79-
&mut self.world,
80-
&mut self.resources,
81-
);
57+
.initialize_and_run(&mut self.world, &mut self.resources);
8258
}
8359

8460
pub fn run(mut self) {
8561
#[cfg(feature = "trace")]
86-
let bevy_app_run_span = info_span!("bevy_app_run");
62+
let bevy_app_run_span = info_span!("bevy_app");
8763
#[cfg(feature = "trace")]
8864
let _bevy_app_run_guard = bevy_app_run_span.enter();
8965

90-
self.executor.initialize(&mut self.resources);
91-
9266
let runner = std::mem::replace(&mut self.runner, Box::new(run_once));
9367
(runner)(self);
9468
}

0 commit comments

Comments
 (0)