gfx-rs / portability

Vulkan Portability Implementation
Mozilla Public License 2.0
384 stars 25 forks source link

Optimize descriptor sets updates #120

Closed kvark closed 6 years ago

kvark commented 6 years ago

The updates are currently item number 2 in the profile on a simple scene. We are doing quite a bit of SmallVec collection in there, and I think it can be improved. For example, we do know the total number of descriptors, so we can write them all in and then pass down the slices from the descriptor array. Not sure what's the safe place to own the temporary storage though.

kvark commented 6 years ago

Fixed by #121