Re: [Kicad-developers] KICAD_USE_FONT_REDUCED_SET question

2019-10-18 Thread Seth Hillbrand

On 2019-10-09 02:26, jp charras wrote:


Hi Seth,

Here is a test showing the memory used by pcbnew, with and without CJK
font (I used the Windows monitor resources):

Initial state:
Available memory: 2280 Mb
Kicad is compiled in Release version.

pcbnew loaded, without CJK:
Available memory: 2153 Mb
pcbnew + fp viewer loaded, without CJK:
Available memory: 2139 Mb
Pcbnew+Eeschema, without CJK:
Available memory: 2060 Mb

pcbnew loaded, with CJK:
Available memory: 1590 Mb
pcbnew + fp viewer loaded, without CJK:
Available memory: 1537 Mb
Pcbnew+Eeschema, with CJK:
Available memory: 1176 Mb

So, the CJK font takes roughly 900Mb at run time when runnning Eeschema
+ Pcbnew.

It explains why I am running out of memory.
There is certainly room for optimization.



Hi JP-

I pushed an optimization for this.  Can you let me know if it helps the 
memory usage for you?


Best-
Seth

Seth Hillbrand
KiCad Services Corporation
https://www.kipro-pcb.com
+1 530 302 5483 | +1 212 603 9372

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] SCH_PAINTER object question

2019-10-18 Thread Wayne Stambaugh
Bummer!  I was hoping to avoid that.  Thanks for the info.

On 10/18/19 1:35 PM, Jeff Young wrote:
> Hi Wayne,
> 
> You’ll have to add it, but there are enough other drawing modes
> (selected, highlighted, etc.) that the code should be factored such that
> adding it is fairly easy.  See SCH_PAINTER::getRenderColor().
> 
> Cheers,
> Jeff.
> 
>> On 18 Oct 2019, at 18:05, Wayne Stambaugh > > wrote:
>>
>> Does anyone know if there is a way to draw a symbol grayed out to appear
>> as though it's disabled (not editable) or am I going to have to write
>> it?  I couldn't find any obvious way to do this but maybe I'm over
>> looking something.  The reason I ask is the new inheritance model will
>> require some major changes to the current library editor design.  I
>> would like to show the flattened symbol (currently the old LIB_ALIAS
>> object along with the LIB_PART that it inherits) but with the editing
>> tools disabled so that you can only edit the child symbol properties
>> rather than the current behavior of always showing the LIB_PART symbol
>> even when one of it's aliases are selected.  The library editor is the
>> last of the changes before I start working on the new symbol library
>> file format.
>>
>> Thanks,
>>
>> Wayne
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> 
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] SCH_PAINTER object question

2019-10-18 Thread Jeff Young
Hi Wayne,

You’ll have to add it, but there are enough other drawing modes (selected, 
highlighted, etc.) that the code should be factored such that adding it is 
fairly easy.  See SCH_PAINTER::getRenderColor().

Cheers,
Jeff.

> On 18 Oct 2019, at 18:05, Wayne Stambaugh  wrote:
> 
> Does anyone know if there is a way to draw a symbol grayed out to appear
> as though it's disabled (not editable) or am I going to have to write
> it?  I couldn't find any obvious way to do this but maybe I'm over
> looking something.  The reason I ask is the new inheritance model will
> require some major changes to the current library editor design.  I
> would like to show the flattened symbol (currently the old LIB_ALIAS
> object along with the LIB_PART that it inherits) but with the editing
> tools disabled so that you can only edit the child symbol properties
> rather than the current behavior of always showing the LIB_PART symbol
> even when one of it's aliases are selected.  The library editor is the
> last of the changes before I start working on the new symbol library
> file format.
> 
> Thanks,
> 
> Wayne
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] SCH_PAINTER object question

2019-10-18 Thread Wayne Stambaugh
Does anyone know if there is a way to draw a symbol grayed out to appear
as though it's disabled (not editable) or am I going to have to write
it?  I couldn't find any obvious way to do this but maybe I'm over
looking something.  The reason I ask is the new inheritance model will
require some major changes to the current library editor design.  I
would like to show the flattened symbol (currently the old LIB_ALIAS
object along with the LIB_PART that it inherits) but with the editing
tools disabled so that you can only edit the child symbol properties
rather than the current behavior of always showing the LIB_PART symbol
even when one of it's aliases are selected.  The library editor is the
last of the changes before I start working on the new symbol library
file format.

Thanks,

Wayne

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Project leader announcement

2019-10-18 Thread Wayne Stambaugh
This will be one of the few times that post news that isn't good.  I
guess it is bound to happen every once in a while.  I regret to inform
everyone that I found out earlier this month that my employment with WIT
will be terminated effective October 31st.  I am not at liberty to
discuss the details as to why my employment was terminated but can say
that I had nothing to do with the decision.  I know that it's not the
best situation in the world for the project or me personally but I am
going to do everything in my power to continue to work full time on
KiCad.  In the short term, I will continue working on KiCad while
pursuing as many avenues as possible to generate enough revenue to allow
me to continue to work full time on KiCad.  You should expect to see
more announcements in the not to distant future.  The long term
prospects are not as clear so I will keep everyone informed as I know
more.  Thank you everyone for your continued support of the KiCad project.

Cheers,

Wayne

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp