User forums > Using Code::Blocks
C::B : a CPU consumer ?
MortenMacFly:
--- Quote from: Alpha on January 16, 2012, 04:38:42 pm ---Yes, but if Code::Blocks can be (optionally) put into this state during compilation, it will result in 10-20% shorter compile times on older computers.
--- End quote ---
Maybe I mis-understood, but if during compilation you go into idle code than this means C::B would not handle any messages coming from the compiler. While this is technically not possible without major rewrite of some portions it is also not meaningful, because you would never get displayed any messages from the compiler...?!
Alpha:
I think last time when I tested, there must have been some strange fluke (??!), because I did receive a speedup. However, you a right, I just re-tested, and found the compilation halts until I leave the menu.
(I wonder what happened last time...)
thomas:
Without receiving messages, how do you know the compilation is finished?
MortenMacFly:
--- Quote from: thomas on January 16, 2012, 06:35:18 pm ---Without receiving messages, how do you know the compilation is finished?
--- End quote ---
Without output re-direction events to be more precise. Surely you'll need to listen for a "task / command completed" event. However - although it might be possible it still doesn't make sense.
thomas:
Well, the thing is, if you put an application into "block inside GUI" mode, it does just that. Or, at least its window thread does that. If the main thread and the window thread are the same (as is the case with Code::Blocks), this means the application does nothing in the mean time.
Try this for yourself, make a new OpenGL project using the wizard, this will build the classic, well-known "spinning triangle" demo. Very fancy to look at.
The demo does nothing but draw a spinning, colored triangle as fast as it can, and pump messages in between, so the application works in a "normal way" (i.e. it does not show the "application is hung" dialog, and the window can be dragged and closed).
Now click on the system menu or drag the window. And behold, the triangle stops spinning. CPU usage is zero, but also the application is not doing anything.
Navigation
[0] Message Index
[*] Previous page
Go to full version