It is currently Sat Aug 22, 2020 4:26 am


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved] How to Make Visual Studio Debug Builds Faster
PostPosted: Sat Aug 23, 2014 11:30 am 

Joined: Sat Aug 23, 2014 10:39 am
Posts: 1
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.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: [Solved] How to Make Visual Studio Debug Builds Faster
PostPosted: Sat Aug 23, 2014 9:28 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
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.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: [Solved] How to Make Visual Studio Debug Builds Faster
PostPosted: Sun Aug 24, 2014 10:06 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
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.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net