bevy/crates/bevy_pbr
Robert Swain 5f05e75a70
Fix 2D BatchedInstanceBuffer clear (#12922)
# Objective

- `cargo run --release --example bevymark -- --benchmark --waves 160
--per-wave 1000 --mode mesh2d` runs slower and slower over time due to
`no_gpu_preprocessing::write_batched_instance_buffer<bevy_sprite::mesh2d::mesh::Mesh2dPipeline>`
taking longer and longer because the `BatchedInstanceBuffer` is not
cleared

## Solution

- Split the `clear_batched_instance_buffers` system into CPU and GPU
versions
- Use the CPU version for 2D meshes
2024-04-15 05:00:43 +00:00
..
src Fix 2D BatchedInstanceBuffer clear (#12922) 2024-04-15 05:00:43 +00:00
Cargo.toml Clean up some low level dependencies (#12858) 2024-04-08 19:45:42 +00:00