Add SetStablePowerState for D3D12 when doing shaders profiling
This commit is contained in:
@@ -423,9 +423,12 @@ bool GPUDeviceDX12::Init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BUILD_DEBUG && false
|
#if !BUILD_RELEASE
|
||||||
// Prevent the GPU from overclocking or under-clocking to get consistent timings
|
// Prevent the GPU from overclocking or under-clocking to get consistent timings
|
||||||
|
if (CommandLine::Options.ShaderProfile)
|
||||||
|
{
|
||||||
_device->SetStablePowerState(TRUE);
|
_device->SetStablePowerState(TRUE);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Setup resources
|
// Setup resources
|
||||||
|
|||||||
Reference in New Issue
Block a user