bevy/crates/bevy_ecs/src
Mike 27e20df6de Stageless: move final apply outside of spawned executor (#7445)
# Objective

- After the multithreaded executor finishes running all the systems, we apply the buffers for any system that hasn't applied it's buffers. This is a courtesy apply for users who forget to order their systems before a apply_system_buffers. When checking stageless, it was found that this apply_system_buffers was running on the executor thread instead of the world's thread. This is a problem because anything with world access should be able to access nonsend resources.

## Solution

- Move the final apply_system_buffers outside of the executor and outside of the scope, so it runs on the same thread that schedule.run is called on.
2023-02-03 02:35:20 +00:00
..
entity Make EntityRef::new unsafe (#7222) 2023-01-16 22:10:51 +00:00
query Basic adaptive batching for parallel query iteration (#4777) 2023-01-20 08:47:20 +00:00
schedule Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
schedule_v3 Stageless: move final apply outside of spawned executor (#7445) 2023-02-03 02:35:20 +00:00
storage Add World::clear_resources & World::clear_all (#3212) 2023-01-17 04:20:42 +00:00
system Speed up CommandQueue by storing commands more densely (#6391) 2023-01-28 01:15:51 +00:00
world Fix unsoundness in EntityMut::world_scope (#7387) 2023-01-29 00:10:45 +00:00
archetype.rs Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
bundle.rs Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
change_detection.rs Add a method for converting MutUntyped -> Mut<T> (#7113) 2023-01-11 17:47:54 +00:00
component.rs Added resource_id and changed init_resource and init_non_send_resource to return ComponentId (#7284) 2023-01-20 19:08:04 +00:00
event.rs Optimise EventReader::clear() and improve documentation (#7471) 2023-02-03 01:03:56 +00:00
lib.rs Add Ref to the prelude (#7392) 2023-01-28 09:28:47 +00:00
reflect.rs add UnsafeWorldCell abstraction (#6404) 2023-01-27 00:12:13 +00:00