Start Graphics Debugging for Unity
Hi there, I'm excited to use NSight to profile my Unity VR game, especially my compute shader performance. I was able to start a Performance Analysis correctly, but have had trouble getting the Frame Debugger to work. When I select Window > Nsight> Start Graphics Debugging, I get the following popup notifications: https://www.dropbox.com/s/y24ehx8h7jgjffv/nsight%20issue.PNG?dl=0. The documentation says to make a build through Visual Studio, and then it will auto-attach once the build starts running. However, since this is a Unity project I need to make a build through Unity. How can I specify the build location manually after it's made from Unity, such that the Graphics Debugger can attach to it? The Performance Analysis tool has a flow to specify the build location, and that has been working great. Thanks! Joe
Hi there,

I'm excited to use NSight to profile my Unity VR game, especially my compute shader performance. I was able to start a Performance Analysis correctly, but have had trouble getting the Frame Debugger to work. When I select Window > Nsight> Start Graphics Debugging, I get the following popup notifications: https://www.dropbox.com/s/y24ehx8h7jgjffv/nsight%20issue.PNG?dl=0. The documentation says to make a build through Visual Studio, and then it will auto-attach once the build starts running. However, since this is a Unity project I need to make a build through Unity. How can I specify the build location manually after it's made from Unity, such that the Graphics Debugger can attach to it? The Performance Analysis tool has a flow to specify the build location, and that has been working great.

Thanks!
Joe

#1
Posted 11/04/2016 06:25 PM   
Looks like this has the solution: http://answers.unity3d.com/questions/579243/using-pragma-enable-d3d11-debug-symbols.html

#2
Posted 11/04/2016 07:04 PM   
If you want to use "Start Graphics Debuggin": * create a new C++ empty project * copy/paste the Unity build (with the associated folder) where VS project generate the build (if you are in debug mode it should be projectName/Debug/ ) Now Nsight should be able to capture a frame and debug it. ;)
If you want to use "Start Graphics Debuggin":
* create a new C++ empty project
* copy/paste the Unity build (with the associated folder) where VS project generate the build (if you are in debug mode it should be projectName/Debug/ )

Now Nsight should be able to capture a frame and debug it. ;)

#3
Posted 11/21/2016 09:47 PM   
Hi, From the sshot, it seems you choose the wrong startup project to launch Nsight Graphics Debugger. as stickman13540 pointed out, you need to generate your Unity game as a binary like xxx.exe, create a dummy visual studio project to use Nsight Graphics Debugger. Thanks An
Hi,

From the sshot, it seems you choose the wrong startup project to launch Nsight Graphics Debugger. as stickman13540 pointed out, you need to generate your Unity game as a binary like xxx.exe, create a dummy visual studio project to use Nsight Graphics Debugger.

Thanks
An

#4
Posted 12/23/2016 08:42 AM   
$12 Course: Ultimate Guide to Debugging in Unity By SIMPLIV Please Visit : https://www.simpliv.com/mobiledevelopment/ultimate-guide-to-debugging-in-unity
$12 Course: Ultimate Guide to Debugging in Unity By SIMPLIV
Please Visit : https://www.simpliv.com/mobiledevelopment/ultimate-guide-to-debugging-in-unity

#5
Posted 03/15/2018 02:01 PM   
Scroll To Top

Add Reply