mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 06:22:01 +00:00
f0bdce7425
# Objective - #4972 introduce a benchmark to measure chang detection performance - However,it uses `iter_batch ` cause a lot of overhead in clone data to each routine closure(it feels like a bug in`iter_batch `) and constructs new query in every iter.This overhead masks the real change detection throughput we want to measure. Instead of evaluating raw change detection, the benchmark ends up dominated by data cloning and allocation costs. ## Solution - Use iter_batch_ref to reduce the benchmark overload - Use cached query to better reflect real-world usage scenarios. - Add more benmark --- ## Changelog |
||
---|---|---|
.. | ||
bevy_ecs | ||
bevy_math | ||
bevy_reflect | ||
bevy_render | ||
bevy_tasks |