kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14189
Re: Very inefficient loading of 3D models
Good idea.
Let me work on getting a RAM cache working first, then we can update the
"load file from disk" code later on.
On Sat, 2014-08-02 at 21:35 +0200, Tomasz Wlostowski wrote:
> On 02.08.2014 20:30, Andrew Zonenberg wrote:
> > The attached patch parallelizes per-vertex normal calculation using
> > OpenMP. I see a nearly 4x speedup of model loading on my quad-core
> > machine.
> >
> Hi Andrew,
>
> Caching the meshes including normals on disk could speed up loading even
> further:
> - take the model file,
> - mesh it (STEP) and calculate normals/other per-vertex/face stuff,
> - save in internal binary format on disk along with the hash/name/date
> of the source model file.
>
> On loading:
> - first look in the RAM (the file might have been loaded already by
> another viewer instance),
> - check the disk cache,
> - if not found, mesh the model and update the disk cache.
>
> Cheers,
> Tom
>
--
Andrew Zonenberg
PhD student, security group
Computer Science Department
Rensselaer Polytechnic Institute
http://colossus.cs.rpi.edu/~azonenberg/
Attachment:
signature.asc
Description: This is a digitally signed message part
References