kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14188
Re: Very inefficient loading of 3D models
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
Follow ups
References