Using visual studio graphics debugger OR nvidia nsight with steam games - visual-studio

I generally use Intel GPA to profile and analyze the rendering process of games on Steam. I wanted to explore Visual Studio's graphics debugger and Nvidia nSight, but I can't get them to "latch" onto the game's process.
This seems to be because of the way steam games are launched. Clicking on the game.exe launches a steam process that in turn launches the game. I don't know why Valve does it this way, but it prevents these tools from "hooking" onto the process and capturing frames.
I tried using the "steam_appid.txt" file to prevent this launch sequence (the steam API mentions this), but to no avail. Just to clarify - I don't have access to the source of these games; i'm just interested in rendering analysis.

I think Nsight can support "latch" you mentioned. Please configure Nsight's User Settings:
Launch external program: $PATH_TO_YOUR_STEAM_EXE
Check the check box named "Application is a launcher" [Here is the key]
Working directory: $PATH_TO_YOUR_STEAM_WORK_DIR
Also remember to uncheck the "Synchronize files" in Synchronization section.
After all configurations have been done, just launch as usual, you will see a Attach dialog box pop out when the steam really runs.
Just run the game from steam, and double click on the game's process in Nsight's Attach dialog box, then you will see the Nsight HUD in the game and every feature for graphic debug of Nsight should works as normal.
The key here is tell Nsight that your 'steam.exe' is just a launcher, and Nsight's dll should hook on the children process from steam.exe, which means "hook/attach on your need".
Thanks
An

Related

Visual Studio 2015 Application overlay windows 10

I want to make an application that starts up when windwos is started, after that the application is full screen on top of everything and you can't close it or use anything of windows, only the application I build. I know how to let my application start up and make it full screen etc. but I dont know how to block all the windows 10 functions, like disable ALT-Tab, ALT-f4 and all that things. So the user can only see and use my application. I searched the whole day but couldn't find anything for this.
Example cash registers at the stores, they run on windwos but they got this software overlay only the cash register software is usable.
Please need some help with this.

Microsoft Teams Splash Screen Stays Open

The Microsoft Teams splash screen stays open all the time.
How can I get it to close after Teams starts up?
I have exactly same problem. I believe that, in my case it was because I enabled NVidia's desktop manager. Microsoft might be hiding the splash screen outside virtual desktop area and NVidia desktop manager always brings it back to the viewable area of the desktop.
I have been personally using Microsoft Teams in my organization and it works fine every time i run it.
Check your network speed or computer memory usage from the task manager and see if there are some extra services running behind. You better close them.

blank window when installing visual studio on windows 10

I have a Windows 10 64-bit PC (fresh install, not an upgrade).
When I run the setup file (web or offline alike) in order to install Visual Studio (2013 or 2015, Community edition), all I get is a small black rectangle on the screen (which I later found out that this is actually the title of the setup popup window), without the actual window of the installation.
I have tried it also after a reboot, and with various "versions" of the installation files (web, iso, standalone), but it's always the same situation.
What can I do about it? VS is my main development tool and I really need it on this computer as soon as possible.
Similar problem here. Program install ok but display blank screen after launched.
Problem solved when I changed my Nvidia graphics's global 3D setting to integrated graphics.
Right click desktop
Select Nvidia Control Panel
Select Manage 3D Settings
Under preferred graphics processor, select integrated graphics.
Apply.
If you are using a laptop with an external monitor, try unplugging it and using your primary monitor to launch. This worked for me. Laptops often have dual graphics cards and I believe we're hitting some issue with the way the Installer for VS was written (likely WPF)
Once I launced it and started the installation, I could safely plug my monitor in and it kept working properly.
I'm using an AMD GPU, It was a blank white screen but when I hover the mouse over it, I can see the text events
By the way
I went to my AMD Radeon Settings and saw that vs_installershell.exe and vs_setup_bootstrapper.exe were added automatically to the Switchable Graphics list
they were with Not Assigned Option which usually is like High Performace Option
means It would run it with my ATI GPU.
So I clicked on them
Selected Power Saving Option (to work with my Intel GPU)
Which worked and I can see the window of visual studio installer back
after restarting visual studio installer for sure.
whether is your graphics card, just turn on power saving for it.
Had the same issue. Since this topic is not accept any answare, there is one from https://developercommunity.visualstudio.com/content/problem/150888/visual-studio-installer-shows-blank-screen.html
Try to open installer as Admin.
You will probably have blank screen. Do not close it!
Open installer once more.
Hope it help other people with same issue.
the same thing happened to me, i didn't do anything i just waited for it and it started showing it's status, i suggest you close other running programs to avoid conflicts and performance hindering, and try it again.
This seems like a very shoddy issue. I've run into this problem too, and I tested all solutions that I came across online. These all work:
Running the installer as administrator, which is a blank screen. Leave it open and run a second instance of the installer, which will not be blank (doesn't need to be run as administrator the second time.
Changing screen settings so that the laptop screen is not being used.
Downloading the AMD Settings application, and setting vs_installershell.exe to run on powersaving mode. Restart the installer after saving the settings.
Use a default graphics driver instead of the AMD one.
I had the the same problem in my laptop. The temporary solution is: start the installer only without the battery, if installer starts you can connect the cable, it works fine.
I had to run integrated graphics rather than my Nvdia. That solved it for me.
Remember to change it back when programming in OpenGL and DirectX otherwise you may get a list of messages staying that nothing works.
I had the the same problem in my laptop. The work around is, in device management, remove the amd graphics or start the installer only with battery.

Nsight Graphics Debugging "completed successfully" error

When attempting to "Start Graphics Debugging" in Nsight for a DLL that launches an EXE, I get the following output and no other things happen:
The operation completed successfully (System.ComponentModel.Win32Exception)
I've updated Nsight and my video drivers - still nothing. Can't seem to find anything online about it either.
Running a GeForce GTX 480 on Windows 7.
There are many reasons which may bring System.ComponentModel.Win32Exeption happen, but from your context, I am guessing you are trying to launch another process within a "launcher" process, please try this to Nsight User Setting:
set the launcher path to "Launch External Program"
check the checkbox named "Application is a launcher"
set your "Working directory" to proper folder path
Be note, check the "Application is a launcher" is the key to make Nsight know the target exe is not the real target, but Nsight will prompt a dialog box to ask for some confirm.
There are also some other reason which may bring this exception happen, but need more confirm from you, for example, are you using managed code like C#? Nsight have some issue on support this kind of application.
Hope this helps
Thanks
An

explorer thread using unusual amount of processor power, detect root/source of "issue"?

I was profiling an application I am developing, and I saw unusual explorer.exe processor usage, almost 15%!
This is very high for explorer, I launched process explorer and then I saw this:
I click "kill" and explorer works fine..
this happens every time explorer restarts / startsup.. How can I detect which application or what is causing that thread to launch and how do I prevent it from launching? My explorer works fine without it.
I suspect this is a virus but none of my AV software detects it..
Can anyone help me out?
You have a 3rd party components which creates dynamically code (green) and this code creates snapshots of programs (red) with this function: kernel32.dll!CreateToolhelp32Snapshot
Use AutoRuns and ShellExView to disable all 3rd party tools until you find the code which causes your CPU usage.

Resources