Page 1 of 1

CodeLite consumes 30% performance of my CPU

Posted: Thu Nov 17, 2016 7:08 am
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

Re: CodeLite consumes 30% performance of my CPU

Posted: Thu Nov 17, 2016 12:12 pm
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

Re: CodeLite consumes 30% performance of my CPU

Posted: Fri Nov 18, 2016 11:16 am
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