Trigger single frame GPU Trace externally #1859
-
Hi there, I'm trying to debug one specific area in a game that struggles and could benefit from using a GPU Trace to diagnose the issue. The problem is when using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The best way to do this is to run your app from Xcode, where you can enable GPU frame capture, and manually trigger the frame you want to capture at the appropriate time during your game run. You do NOT need to create a build environment (files, code, build targets) within Xcode. Just create a Scheme, and in the Run section, select the executable to launch for the run, select Debug Build Configuration, and enable Debug executable. You can set any command line arguments and environmental variables your app needs, in the Arguments tab, and in the Options tab, select GPU Frame Capture: Metal. If you encounter any issues, or in case I've forgotten something in my explanation, post any questions back here. |
Beta Was this translation helpful? Give feedback.
For those wondering on updates, I've made a patch that creates a separate window from which you can trigger a capture.
0001-Frame-Capture-Tool-Window.patch