← Back to team overview

kicad-developers team mailing list archive

Re: 3D cache path

 

Hi Bernhard,

At moment 3D cache has almost any use in the current code.

If my branch get merged on day:
https://code.launchpad.net/~mrluzeiro/kicad/kicad_new3d-viewer
The 3D viewer will use that cached models to speed up the board loading (so there is no need to parse the model files and recalculate normals etc..)

The cache is global, on accord to last Cirilo email, that will be per user account.
There is a hash function that maps the real file to the cached data, also it checks for file modification (Cirilo can give more details about it).

Mario

________________________________________
From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx] on behalf of Bernhard Stegmaier [stegmaier@xxxxxxxxxxxxx]
Sent: 19 May 2016 14:14
To: Nick Østergaard
Cc: KiCad Developers
Subject: Re: [Kicad-developers] 3D cache path

+1 for the button or auto cleanup from my side.

What is cached there at all?
I just looked on my OS X setup and I found the cache folder, but it is empty.
And yes, I am working on a couple of boards with 3d models…

How is it in general thought to work?
Is it intended to cache whatever it caches on a per model, per project, per etc. basis?

Apart from that, (1) seems to be the right place for OS X.


Regards,
Bernhard

On 19 May 2016, at 14:27, Nick Østergaard <oe.nick@xxxxxxxxx<mailto:oe.nick@xxxxxxxxx>> wrote:


I am not sure having a manual button to click to clear the cache helps a lot... I think some autocleanup would be nice, but that does of course not exclude a button for those people who likes to click on stuff.

Den 19/05/2016 12.09 skrev "José Ignacio" <jose.cyborg@xxxxxxxxx<mailto:jose.cyborg@xxxxxxxxx>>:
+1 on a "Clear cache" button/menu item

On Thu, May 19, 2016 at 3:39 AM, easyw <easyw@xxxxxxxxxxxx<mailto:easyw@xxxxxxxxxxxx>> wrote:
> Hi,
> I think it would also useful to have a menu item to clean 3D cache on
> request...
> just to avoid having a huge caching ...
>
> Maurice
>
>
> On 19/05/2016 05.42, Cirilo Bernardo wrote:
>>
>> Hi Folks,
>>
>>   I've had some feedback on the location of the 3D cache data on various
>> systems.
>> At the moment the data is in
>> wxStandardPaths::Get().GetUserConfigDir()/kicad/3d/cache
>> and since that's a subdir of a configuration directory I guess it's not
>> surprising
>> that users are not happy.
>>
>>  From discussion with other devs it seems to be agreed that the
>> 3D cache data should go into:
>>
>> 1. OSX: ~/Library/Caches/kicad/3d
>>      Equivalent: ${HOME}/Library/Caches/kicad/3d
>>
>> 2. Linux: ~/.cache/kicad/3d
>>      Actually it should be ${XDG_CACHE_HOME}/kicad/3d with the fallback
>>      ${HOME}/.cache/kicad/3d
>>
>> 3. MSWin: AppData\Local\kicad\3d
>>     wxStandardPaths::UseAppInfo( AppInfo_None );
>>     wxStandardPaths::Get().GetUserLocalDataDir();
>>     So far we have %AppData%\Local or equivalent, now we add kicad\3d
>>
>> Any comments/objections? If there are no objections I will create a patch
>> to implement this. One drawback of course is that current users of the
>> dev branch will have a lot of junk cache data in the old location but
>> this is
>> a detail which should be fixed.
>>
>> - Cirilo
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx<mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



Follow ups

References