CodeLite consumes 30% performance of my CPU

CodeLite installation/troubleshooting forum
Peter.Jiang
CodeLite Enthusiast
Posts: 13
Joined: Tue Oct 20, 2015 11:38 am
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite consumes 30% performance of my CPU

Post by Peter.Jiang »

Hi, Erif
I am confused about an interesting problem, could you please do me a favor:)
When I install the CodeLite from our release web, open CodeLite, the CPU's performance is normal, (lower than 5%);
However, when I use the CodeLite to build my own "CodeLite", the CPU's performance is abnormal, (more than 30%);
I just found if I use the wxmsw310u_gcc_cl.dll which is built by myself, the performance will be abnormal; if I use the wxmsw310u_gcc_cl.dll from the release installer, the performance is normal.
I am writing here just to be curious what the config options you use to build the wxWidgets.
The following options is my option to build wxWidget, what do you think about the following option:
---------------------------------------------------------------------
mingw32-make -f Makefile.gcc SHARED=1 UNCODE=1 BUILD=release VENDOR=cl CXXFLAGS="fno-keep-inline-dllexport -std=gnu++11“ MONOLITHIC=1
---------------------------------------------------------------------
I will be happy if you give me any relay:) Thanks!

Peter.Jiang
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite consumes 30% performance of my CPU

Post by eranif »

You are building wxWidgets properly (we use the same parameters)

On Windows, I apply this patch to the wxWidgets sources before building, because they cause HIGH CPU usage:
http://pastebin.com/T3xnHJEn


This was a fix I did after a long investigation due to this bug report:
https://github.com/eranif/codelite/issues/877

Eran
Make sure you have read the HOW TO POST thread
Peter.Jiang
CodeLite Enthusiast
Posts: 13
Joined: Tue Oct 20, 2015 11:38 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite consumes 30% performance of my CPU

Post by Peter.Jiang »

Hi, Eranif
Very much appreciate for your great help:)
I applied your patch, and right now, my “CodeLite" works normally.
Thanks again!
Peter.Jiang
Post Reply