-
Issue #13205 reports a performance issue with IntelliSense in a project that uses headers from the OpenUSD project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 "compilerArgs": [
"/Zc:preprocessor"
], |
Beta Was this translation helpful? Give feedback.
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 acompile_commands.json
file with this flag set will resolve this issue for you: