Qt Creator High CPU Usage
-
wrote on 14 Aug 2022, 04:13 last edited by Crag_Hack
Hi I have a hopefully simple problem... when I use Qt Creator and I type in code the CPU usage occupies ~10-18%, mostly about in the middle at ~15%, of my Ryzen 5900X. That's a 12 core 24 thread monster with a boost clock of 4.8 GHz. It's obviously doing a lot of thinking. Part of my coding style is huge classes with tons of members instead of many classes with few members. Also I put all those huge classes in their own headers and cpp files. Not sure if this matters. Here a guy had a similar problem but the Ignore pre-compiled headers option is already off for me. It's super annoying that the fans ramp up every time I code. Any ideas what might be causing the high CPU usage? Is this normal?
Thanks! -
Hi I have a hopefully simple problem... when I use Qt Creator and I type in code the CPU usage occupies ~10-18%, mostly about in the middle at ~15%, of my Ryzen 5900X. That's a 12 core 24 thread monster with a boost clock of 4.8 GHz. It's obviously doing a lot of thinking. Part of my coding style is huge classes with tons of members instead of many classes with few members. Also I put all those huge classes in their own headers and cpp files. Not sure if this matters. Here a guy had a similar problem but the Ignore pre-compiled headers option is already off for me. It's super annoying that the fans ramp up every time I code. Any ideas what might be causing the high CPU usage? Is this normal?
Thanks!wrote on 14 Aug 2022, 06:04 last edited by@Crag_Hack
Start by switching off the Code completion model, or at least change it from some "ClangCodeModel" to whatever the inbuilt alternative is, and see if that makes a difference, to pinpoint if the issue lies there. -
wrote on 17 Aug 2022, 04:13 last edited by Crag_Hack
Thanks JonB. I tried messing around with a couple settings, including changing code completion to being activated manually, and turning off clang-tidy and clazy checks and deselecting the Analyze open files option, with some results but still a fair amount of CPU usage about ~10% tops with everything off. Then I turned Clang Tools Parallel Jobs option to 1 and got somewhat better results ~5% or so. Qt Creator is still analyzing correctness of code, should it be doing that still? Maybe I failed to turn things off completely? Can you try Qt Creator on your system? Is there a possibility this is all normal? I'm in Win10.
1/3