mirror of
https://github.com/bevyengine/bevy
synced 2024-12-20 18:13:10 +00:00
5f05e75a70
# 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 |
||
---|---|---|
.. | ||
color_material.rs | ||
color_material.wgsl | ||
material.rs | ||
mesh.rs | ||
mesh2d.wgsl | ||
mesh2d_bindings.wgsl | ||
mesh2d_functions.wgsl | ||
mesh2d_types.wgsl | ||
mesh2d_vertex_output.wgsl | ||
mesh2d_view_bindings.wgsl | ||
mesh2d_view_types.wgsl | ||
mod.rs | ||
wireframe2d.rs | ||
wireframe2d.wgsl |