User forums > General (but related to Code::Blocks)
Prioritising
Poobah:
On my single processor (Celeron) system, Code::Blocks uses about 25% CPU usage while compiling, leaving the rest to the compiler. This is annoying, because it gives me the impression that it could be compiling faster if Code::Blocks wasn't using the CPU so much. Another similar annoyance is that when I'm running a program just compiled with Code::Blocks, the same occurs; Code::Blocks still uses about 25% CPU, so the program runs slower than it would normally.
Could one of the developers add a feature that allows users to choose the priorities of the child compiling processes and the compiled program? It would also be helpful to be able to have an option to change Code::Blocks' priority without its child processes inheriting this priority so that, for example, Code::Blocks could be low priority while the child processes could still be normal.
Poobah:
(Bump)
Game_Ender:
Well it shouldn't be using all the CPU power at all. Are you using a recent nightly? There was recently a fixe with idle/update UI events that reduced CPU usage.
Poobah:
I'm using the most recent one at the moment (April 4).
The problem only occurs when there's a source file open. If I close them all, it uses 0-1% CPU. I think some of the plug-ins may be causing the trouble.
Disabling individual plug-ins makes negligible difference, but disabling all of them results in an 8-10% CPU usage decrease, leaving the usage at about 5-8%, which is still too much. (I am using what I would consider a minimal set of plug-ins, by the way:
Autosave
Code completion
Code profiler
Compiler
Debugger
Files extension handler
Scripted wizard
Windows XP Look'n'Feel)
Game_Ender:
What happens when you disable code completion? It does have to parse the files every time you save them, so it might just still be working.
Navigation
[0] Message Index
[#] Next page
Go to full version