bevy/crates/bevy_pbr/src
François 9d54f33974 Skinned extraction speedup (#4428)
# Objective

- While animating 501 https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/BrainStem, I noticed things were getting a little slow
- Looking in tracy, the system `extract_skinned_meshes` is taking a lot of time, with a mean duration of 15.17ms

## Solution

- ~~Use `Vec` instead of a `SmallVec`~~
- ~~Don't use an temporary variable~~
- Compute the affine matrix as an `Affine3A` instead
- Remove the `temp` vec

| |mean|
|---|---|
|base|15.17ms|
|~~vec~~|~~9.31ms~~|
|~~no temp variable~~|~~11.31ms~~|
|removing the temp vector|8.43ms|
|affine|13.21ms|
|all together|7.23ms|
2022-04-07 16:16:36 +00:00
..
render Skinned extraction speedup (#4428) 2022-04-07 16:16:36 +00:00
alpha.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bundle.rs add Visibility for lights (#3958) 2022-03-05 03:23:01 +00:00
lib.rs Use storage buffers for clustered forward point lights (#3989) 2022-04-07 16:16:35 +00:00
light.rs Use storage buffers for clustered forward point lights (#3989) 2022-04-07 16:16:35 +00:00
material.rs Use storage buffers for clustered forward point lights (#3989) 2022-04-07 16:16:35 +00:00
pbr_material.rs Use storage buffers for clustered forward point lights (#3989) 2022-04-07 16:16:35 +00:00
wireframe.rs ParamSet for conflicting SystemParam:s (#2765) 2022-03-29 23:39:38 +00:00