KStocky / ShaderTestFramework

An automation testing framework for testing shader code
MIT License
20 stars 1 forks source link

Only load PIX DLL when a capture is required #61

Closed KStocky closed 1 month ago

KStocky commented 5 months ago

Is your feature request related to a problem? Please describe. If we load the PIX dll, then our test runtime is increased by 50%. It drastically increases the amount of time to create an ID3D12Device.

Describe the solution you'd like We should really only load this dll if a capture is requested. And, we should probably unload the DLL at the end of a test suite has finished running so that further tests don't pay the price of the ID3D12Device construction.

Describe alternatives you've considered N/A

Additional context This is a screenshot of a performance capture showing that the winpixgpucapturer dll accounts for 46% of my runtime when it is loaded, during the creation of d3d12 devices.

image