Shadows.PrepareDrawShadows Memory fallback allocation

Hello,

I have problem with allocators at draw shadows step. There is a lot of fallback allocations which are super expensive. Do you know how to increase Temp and TempJob allocators size in order to avoid these Fallbacks? 9675563--1378853--image_2024-03-02_072123746.png

I figured it out. I had job with [DeallocateOnJobCompletion] but on custom unsafe container, and Unity is so great that even with NativeContainerSupportsDeallocateOnJobCompletionAttribute on that container and required naming wasn’t releasing that memory. I switch to NativeArray for culling planes allocation and these fallbacks are gone. It’s super annoying that allocation name pointing to Temp, but allocation which wasn’t released was TempJob.