0

I am using C++ in Microsoft Visual Studio 2015 and I tried copying Release mode in the configuration manager, and the copied configuration has exactly the same properties. However, it does not behave in the exact same way. The copied configuration is much slower.

I would like to copy the Release Mode configuration and then change the copied configuration from there.

Z0q
  • 1,689
  • 3
  • 28
  • 57
  • Check the optimization settings. If your code is slower, it is more than likely that your copied configuration has a lower optimization setting than your release mode – R_Kapp Oct 27 '15 at 14:12
  • [Release and Debug are just labels for different configurations](http://stackoverflow.com/a/938665/4342498) – NathanOliver Oct 27 '15 at 14:13
  • @R_Kapp: The optimization settings are identical. – Z0q Oct 27 '15 at 14:13
  • 2
    @Z0q no, there is no magic. You missed something when you "copied it over". My advice would be to use a computer difference tool on parts of the the project file and other parts of the project file. And if you fail to find a difference, look harder. – Yakk - Adam Nevraumont Oct 27 '15 at 14:16
  • @Yakk: I used the "Copy settings from" functionality of the configuration manager. I assume this would make an identical copy? – Z0q Oct 27 '15 at 14:19
  • @Yakk: You are right.. I should have updated the library directories to use `$(Configuration)` – Z0q Oct 27 '15 at 14:27
  • Actually, it's still behaving differently. – Z0q Oct 27 '15 at 14:46
  • @Yakk: I used a compare tool. They are identical now. I have tried to rebuild. Still I get different results. – Z0q Oct 27 '15 at 14:58
  • Did you rebuild the old one as well? – R_Kapp Oct 27 '15 at 15:03

1 Answers1

0

I managed to solve the problem.

For my application executable I made a custom profile in my graphics card options to use my dedicated instead of my integrated one. The newly created configuration was building the executable file in a different location.

Creating a profile for the newly created configuration solved the problem.

Z0q
  • 1,689
  • 3
  • 28
  • 57