Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator High CPU Usage

Qt Creator High CPU Usage

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Crag_Hack
    wrote on last edited by Crag_Hack
    #1

    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!

    JonBJ 1 Reply Last reply
    0
    • C 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!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Crag_Hack
        wrote on last edited by Crag_Hack
        #3

        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 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved