diff --git a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp index 9f024136a..a33cd8194 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp +++ b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp @@ -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 - _device->SetStablePowerState(TRUE); + if (CommandLine::Options.ShaderProfile) + { + _device->SetStablePowerState(TRUE); + } #endif // Setup resources