# PIX for Windows

**URL:** <https://forums.unrealengine.com/t/pix-for-windows/106536>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [February 15, 2018, 6:22am UTC](https://forums.unrealengine.com/t/pix-for-windows/106536 "2018-02-15T06:22:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathblaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mathblaster](https://forums.unrealengine.com/u/Mathblaster)\
**Post date:** [February 15, 2018, 6:22am UTC](https://forums.unrealengine.com/t/pix-for-windows/106536/1 "2018-02-15T06:22:07Z")

</div>

Hello,

I’m brand new to Unreal and I’m trying to get a basic project to work with PIX for Windows so I can do CPU and GPU profiling and debugging. I can get my game to run in dx12, and I can get PIX to attach to the running process, but I can’t take GPU captures (it says “Target process was not launched for GPU Capture”). Also the Timing Capture only shows GPU pass times, no CPU pass times. When I try to launch the executable directly from PIX with arguments -d3d12 and -game, the Unreal loading dialog pops up but quickly disappears and the game never loads.

Any help would be appreciated.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Mathblaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mathblaster](https://forums.unrealengine.com/u/Mathblaster)\
**Post date:** [March 2, 2019, 9:31pm UTC](https://forums.unrealengine.com/t/pix-for-windows/106536/2 "2019-03-02T21:31:08Z")

</div>

1 year later I found myself wanting to try again, and it worked! I’m not sure if I did this a year ago, but this time I baked out data on the game and then ran the NoEditor version of the game from PIX. Still trying to sort out CPU captures

---

<div class="post-metadata">

**Author:** ![OptimisticMonkey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/optimisticmonkey/32/906571_2.png) [@OptimisticMonkey](https://forums.unrealengine.com/u/OptimisticMonkey)\
**Post date:** [May 13, 2022, 4:27pm UTC](https://forums.unrealengine.com/t/pix-for-windows/106536/3 "2022-05-13T16:27:34Z")

</div>

From UE5 Release notes:  
Added support for attaching to PIX on startup. You can either pass “-attachPIX” on the command line or set r.D3D12.AutoAttachPIX=1 in ConsoleVariables.ini. You will still need to manually hit “attach” inside PIX.
