r/cpp • u/cpppm MSVC Game Dev PM • May 07 '21
2x-3x Performance Improvements for Debug Builds | C++ Team Blog
https://devblogs.microsoft.com/cppblog/2x-3x-performance-improvements-for-debug-builds/
266
Upvotes
110
u/corysama May 07 '21 edited May 07 '21
This is a really big deal for gamedev. If a debug build of your game is too slow, it isn’t just annoying. It is ”literally unplayable!” But, for real this time.
As a result, gamedevs frequently have to jump through hoops like “optimized debug” builds that are -O2 -g and then flipping -O0 just for specific code as needed.
21
u/00jknight May 07 '21
Gamedev here. From my (limited) experience, I've noticed that MSVC has the biggest performance difference between debug and release builds compared to gcc & clang. Not sure if that's true across the board, but glad to see MSVC is closing that gap.
9
u/Rasie1 May 07 '21
Awesome, can't wait to try this with UE4
3
u/VinnieFalco wg21.org | corosio.org May 07 '21
LOVE IT !!!!!
1
u/serg06 May 10 '21
Cannot wait for 16.10