Include Metrics


Pic largely unrelated as the only flashy thing I've done in the last several days is implementing some new HUD states so it's easier to manage various levels of theoretical warning or damage; most of my work has been internal engine cleanup. What I'd actually like to do is recommend that you use the include metrics from Visual Studio's Build Insights on your project and try to find what include files are costing the most compilation time. I have a relatively beefy machine and my project was still taking two minutes to build; Build Insights helped me find the culprits -- mainly certain common include files which were in turn including Windows, OpenGL, or iostream headers, and also ones that had a ton of inline functions defined in the header. If you can absolutely limit how often those are included in your project, you can cut a decent quarter or so of the build time off, like I did.

Leave a comment

Log in with itch.io to leave a comment.