mirror of
https://github.com/bevyengine/bevy
synced 2025-02-25 11:57:20 +00:00
This commit changes the `StandardMaterialKey` to be based on a set of bitflags instead of a structure. We hash it every frame for every mesh, and `#[derive(Hash)]` doesn't generate particularly efficient code for large structures full of small types. Packing it into a single `u64` therefore results in a roughly 10% speedup in `queue_material_meshes` on `many_cubes --no-frustum-culling`.  |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |