I have a dynamic sunlight in my level, and the cost for my ShadowDepths is huge. When I go into ProfileGPU, my ShadowDepth costs will range from 4ms to 9ms, and nearly all the cost is displayed in only one element (see attached image for an example).
The element will vary in its type, but it will usually be the second or third in the list. The entry will also have additional information of prims/ms and verts/ms, indicating that it’s detecting that one primitive is rendering very slowly for some reason?
Is this a bug in ProfileGPU, and it’s not giving correct times? Is the GPU stalling for some reason? What can I do? Help!