User forums > Using Code::Blocks
High CPU usage
thomas:
--- Quote from: grv575 on September 15, 2005, 11:46:15 pm ---Sound like the right way to go about it (OnIdle + OnTerminate).
--- End quote ---
OnTimer + OnTerminate? Else, we can leave it as it was before. :)
grv575:
Heh. yes that's what I meant.
thomas:
Coming back to the old topic of high CPU consumption (hopefully I picked the right thread):
I just found something that I wasn't sure what it is needed for, commented it out, and surprisingly found my old suspicions about update events confirmed.
This image shows
(1) typing legible text at my normal typing speed
(2) typing illegible text like aflkdjflfkdjfalsdfsdafs at a significantly higher speed
(3) permanently holding down the right arrow key
(4) changing text selection using the mouse
The upper half of the image is Code::Blocks HEAD, the lower half is Code::Blocks HEAD with lines 720-722 in sdk/editormanager.cpp sdk/cbeditor.cpp commented out. The graph needs no further explanation, I think.
Now, it would be interesting to see if this can fix the "100% CPU" problem and the "cpu fan spinning up on my notebook when I type" problem for the people affected.
dmoore:
nice! I suspect this may also help those linux users experiencing editor slowness issues...
artoj:
Great! I'll test this on my laptop.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version