use crateSpawnScatterAssets;
use crate*;
use MessageWriter;
use ResMut;
/// A simple system that processes one event per frame by popping it of the [`SpawnScatterAssetsEventQueue<T>`].
/// In large worlds with lots of chunks, this prevents frame drops and stutter when multiple chunks with many instances are spawned at the same time.
///
/// This is more or less a simple Band-Aid fix, and more tracing and optimization has to be done,
/// e.g., optimizing CPU scatter tasks and adding a scatter compute pipeline.