Hello!
I’m attempting to disable as many unnecessary features of the scene capture component to make it as cheap as possible on the GPU and render thread. The scene capture is just used to render a single animating skel mesh with a few shadow casting lights. Nothing that’s passed in to the scene capture’s ShownComponents needs to go through any kind of culling. I was able to turn on the “DisableOcclusionQueries” show flag for the scene capture but it still does a RenderHzb pass that it doesn’t seem to use. In the code I’ve noticed it doesn’t seem to check the bIsOcclusionTesting flag before doing this pass. I’ve locally added the code to check the flag and not call RenderHzb in that case, which works with no noticeable changes, but I’m not sure if this is going to have some unseen negative effect. Does this look like a safe change?
...
const bool bUseHzbOcclusion = bIsOcclusionTesting ? RenderHzb(GraphBuilder, SceneTextures.Depth.Resolve, BuildHZBAsyncComputeParams, FroxelRenderer) : false;
...
[Attachment Removed]