baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.6k stars 1.3k forks source link

Filter Resource Inspector to show only resources used in current frame #3348

Closed ccosse closed 2 weeks ago

ccosse commented 3 weeks ago

Description

The application I'm inspecting has roughly 1000 resources, each of which is duplicated per each of 3 frames-in-flight. If the currently captured frame is using swapchain image #1, for example, then 2/3 of the resources in the resource list do not apply.

I would like to be able to filter the resource list to show only those resources used by the currently captured frame, and thus pare-down the resource list so that everything showing is relevant to the currently captured frame.

Environment

baldurk commented 3 weeks ago

RenderDoc captures by default only include resources referenced in the captured region, though this is a conservative set and it is not feasible to precisely determine the exact set. It only includes every resource that exists when requested.

Are you sure that there are 1000s of resources being included which are not referenced in any way, including e.g. being bound in descriptor sets or otherwise indirectly used, or that you're setting the option that forces it to include every resource?

If you are sure, can you share a sample application that exhibits this behaviour?

ccosse commented 3 weeks ago

Hi, thank you for the reply; the resources I am referring to probably are referenced somewhere after all. Thanks again!