vacuus
vacuus
I don't know how important this is for Bevy, but `std::thread::available_parallelism` is erroneous for "environments where the available parallelism is controlled by cgroupv1" (https://github.com/rust-lang/rust/pull/97911), leading to significantly higher memory usage...
Add `OnEachEnter` and `OnEachExit` schedules?
There are use cases for both re-triggering and not re-triggering. See https://github.com/bevyengine/bevy/issues/8191. I don't know what the overhead of a schedule is in Bevy, but if it's not significant then...
Your first example could use `.count()` and avoid the `Vec` altogether.