valence/crates/playground
Supermath101 cc2571d7e6
Changed setup() to not be an exclusive system (#258)
<!-- Please make sure that your PR is aligned with the guidelines in
CONTRIBUTING.md to the best of your ability. -->
<!-- Good PRs have tests! Make sure you have sufficient test coverage.
-->

## Description

In the [examples of the `valence`
crate](https://github.com/valence-rs/valence/tree/main/crates/valence/examples),
the `setup()` functions are currently [exclusive
systems](https://bevy-cheatbook.github.io/programming/exclusive.html).
My reasoning for making these a standard system is twofold:
- Exclusive systems can be considered an advanced Bevy topic. I don't
think you should be using advanced concepts in examples meant to be an
introduction to the way this project/framework is used.
- In instances where developers try to use these examples, adding
another startup system would result is running the systems sequentially.
That leaves performance on the table (albeit only during startup).

---------

Co-authored-by: Supermath101 <unknown>
Co-authored-by: Supermath101 <>
2023-02-27 12:13:56 -08:00
..
src Changed setup() to not be an exclusive system (#258) 2023-02-27 12:13:56 -08:00
build.rs ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00
Cargo.toml ECS Rewrite (#184) 2023-02-11 09:51:53 -08:00