Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

[Solved] How to Make Visual Studio Debug Builds Faster
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=609
Page 1 of 1

Author:  yezo [ Sat Aug 23, 2014 11:30 am ]
Post subject:  [Solved] How to Make Visual Studio Debug Builds Faster

Hi All,

Thank you for this wonderful library, this is my first post here.

I want to share my findings about VS debug/release execution speed difference and how to make the debug builds faster.

On my machine I had debug/release difference to be ~ 900ms vs 25ms, which is unpractically slow in debug.

After searching the internet this article came up: http://randomascii.wordpress.com/2011/07/22/visual-c-debug-buildsfast-checks-cause-5x-slowdowns/

What you have to do is "In your project properties go to C/C++, Code Generation, and set Basic Runtime Checks to Default."

After I've done that, I've got ~160ms vs 25ms timings, which is 5 times faster in debug, and is almost acceptable for development.

Hope this helps someone,
Yezo.

Author:  David Williams [ Sat Aug 23, 2014 9:28 pm ]
Post subject:  Re: [Solved] How to Make Visual Studio Debug Builds Faster

Yes! This is a great trick which I have also used in the past. PolyVox debug builds are indeed slow (they perform a lot of memory accesses and these have to be validated I think) and this tip does help.

Author:  David Williams [ Sun Aug 24, 2014 10:06 am ]
Post subject:  Re: [Solved] How to Make Visual Studio Debug Builds Faster

It's also worth pointing out that you should disable POLYVOX_ASSERTS to get maximum speed. POLYVOX_ASSETS are active even in release mode unless you explicitly disable them in Config.h.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/