Skip to content

Excessive memory usage and slow performance when using OpenUSD/Pixar headers #13349

Closed Answered by bobbrow
bobbrow asked this question in Q&A
Discussion options

You must be logged in to vote

We discovered that the Pixar headers support both MSVC's conforming and non-conforming preprocessors. When you configure your project and IntelliSense to use the newer standards conforming preprocessor, these headers do not require the deep recursion and memory usage in the IntelliSense process.

If you are using these headers and MSVC as your compiler, you need to ensure that IntelliSense is configured to use the conforming preprocessor. Adding this into your configurations in c_cpp_properties.json and/or updating your build system to generate a compile_commands.json file with this flag set will resolve this issue for you:

            "compilerArgs": [
                "/Zc:preprocessor"

Replies: 1 comment

Comment options

bobbrow
Mar 7, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by bobbrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant