Automatic Cache Invalidation vs. Manual Query Refresh: Which Approach Yields Better Performance?
When a Bevy component changes, the engine’s query cache can either be invalidated automatically or left untouched, forcing the query to recompute on the next frame. The automatic strategy guarantees that queries always see the latest data, but may incur unnecessary recomputations when the component changes rarely. The manual strategy, enabled via Query::with