Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

debug visual studio vs debug.exe

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 the dodger uk   Members   

148
Like
0Likes
Like

Posted 07 February 2013 - 06:45 PM

ok , i have a weird problem , i just ran a long test

 

if i run my project in visual studio debug , it takes 11min 23 seconds to load and run

 

if i copy over the debug.exe and run it from project folder , it takes 27 seconds

 

 

i  have to assume i  did something odd in the settings in visual studio, any one any ideas



#2 SiCrane   Moderators   

11782
Like
2Likes
Like

Posted 07 February 2013 - 07:05 PM

When run from the debugger an MSVC application will have a few differences. For example, IsDebuggerPresent() will return true rather than false. The biggest difference from a performance standpoint is that the debug memory allocator will be used. Allocations will be larger with more sanity checking information, impacting cache misses and increasing the time necessary for each allocation and deallocation. If your program does a lot of small allocations this can really add up.

#3 Nik02   Members   

4299
Like
0Likes
Like

Posted 08 February 2013 - 01:38 AM

Furthermore, Visual Studio tries to find all the symbols for all runtime dependencies of your program, sets up thread monitoring, builds runtime metadata for your variables, etc.


Niko Suni





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.