Commit 81127b3
authored
Increase
# Objective
We have 11 draw functions but `MaterialProperties::draw_functions`
SmallVec only inlines 4 on the stack, which means currently it offers no
benefit over `Vec`.
## Solution
Increases its capacity to 11. The size of `PreparedMaterial` doesn't
matter, because it's stored on the heap anyway (inside
`ErasedRenderAssets<PreparedMaterial>`).
## Testing
CIMaterialProperties::draw_functions inline capacity (#24844)1 parent 9bc5b6e commit 81127b3
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
1710 | | - | |
| 1710 | + | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | 1713 | | |
| |||
0 commit comments