Skip to main content
Microsoft
PIX
PIX
  • Home
  • DevBlogs
    • App Center
    • Azure DevOps
    • Notification Hubs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • Azure Artifacts
    • Azure Boards
    • Azure Pipelines
    • Azure Repos
    • Azure Test Plans
    • DevOps
    • C++
    • Java
    • Java Blog in Chinese
    • JavaScript
    • PowerShell
    • Python
    • Q#
    • Scripting
    • TypeScript
    • Visual Basic
    • Visual C#
    • Visual F#
    • .NET
    • ASP.NET
    • NuGet
    • Xamarin
    • Apps for Windows
    • Azure Government
    • Azure SDKs
    • Bing Dev Center
    • Command Line
    • Developer Support
    • DirectX Developer Blog
    • IoT Developer
    • Math In Office
    • Microsoft Edge Dev
    • Microsoft Azure
    • Office 365 Development
    • Old New Thing
    • PAX Graph
    • PAX Media
    • PAX Windows
    • Perf and Diagnostics
    • PIX on Windows
    • Startup Developers
    • Surface Duo
    • Sustainable Software
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL
    • Azure Synapse Analytics
    • OData
    • Revolutions R
    • SQL Server Data Tools

    Taking a Capture

    The first step in using PIX is to capture some data from your game.  This is done via the PC Connection view, which is the first thing you will see when launching PIX:

     

    Image connection page 2020

    To take a PIX capture:

    1. Launch or attach to a target process.  When launching a new UWP or Win32 application, you can choose whether to Launch For GPU Capture. This instructs PIX to insert necessary instrumentation while the game is starting up.  When attaching to an already running process, it is not possible to take GPU captures. You can also choose whether you would like to force all D3D11 work to be redirected through D3D11On12, to make it capturable by PIX.
    2. Click the icon to the left of your chosen capture type to collect the data.  When the target is launched for GPU capture, you can also take captures by pressing the PrintScreen key while the game has focus.

    All the different capture types can be saved as PIX capture files, which have a .wpix extension. Each capture you take will be saved into a separate .wpix file.

    Some games use one or more launcher executables, which display a splash screen or menu before creating a different process that hosts the actual game.  PIX GPU captures are able to follow through this tree of processes, but other capture types only record data from the specific process that they launched or attached to, so if your game uses multiple processes you will need to bypass any launchers and tell PIX how to directly start the main game executable instead.

    It is also possible to programmatically control when a GPU capture should be taken from inside your game code.

    Relevant Links
    • Download
    • Documentation
    • Known Issues
    • Videos
    • Support
    • WinPixEventRuntime
    • Roadmap
    Top Bloggers
    Steven Pratschner

    Steven Pratschner
    Program Manager

    Avatar

    Morgan Grobin
    Program Manager

    Austin Kinross

    Austin Kinross
    Developer

    Damyan Pepper

    Damyan Pepper
    Dev Lead

    Jeff Noyle

    Jeff Noyle
    Developer

    Archive
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • May 2020
  • March 2020
  • January 2020
  • December 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • October 2018
  • July 2018
  • June 2018
  • March 2018
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • Stay informed

    Login
    Code Block
    What's new
    • Surface Duo
    • Surface Laptop Go
    • Surface Pro X
    • Surface Go 2
    • Surface Book 3
    • Microsoft 365
    • Windows 10 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Financing
    Education
    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education
    Enterprise
    • Azure
    • AppSource
    • Automotive
    • Government
    • Healthcare
    • Manufacturing
    • Financial services
    • Retail
    Developer
    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Center
    • Microsoft developer program
    • Channel 9
    • Microsoft 365 Dev Center
    • Microsoft 365 Developer Program
    • Microsoft Garage
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2021