In Visual Studio 2010 (C# .NET 4.0), I am testing a client/server solution these days. It’s a game that is quite heavy and laggy to run for both my CPU and GPU. It takes minutes to just get a connection going, and it’s bothering me quite a lot. Also, the 2 games start on the same screen which is annoying, since I have a dual-monitor setup, which could easily be used to optimize the process.
How can I make a program do something different the 2nd time it starts up through Visual Studio 2010?
I realize I could do some compilation conditions or maybe use some Process hacks to see if an existing process is running, but I find that a bit unpure.
Any other ideas?
Create two copies of sources and open them in two instances of VS. You’ll be able to debug both your instances separately, and also you’ll be able to set different startup settings for games, to run and both monitors.
Though, in your position I would try to find a second machine, for fully separate debugging and use you second monitor to show source code, while game runs on the first one (or vice versa)