Page 1 of 1

Very slow loading of OBJ file in 2.10.alpha

Posted: Thu Jul 12, 2018 9:43 am
by maarten
I have an OBJ file with 4M vertices and 8M faces, as well as an 8Kx8K texture.
It loads very smoothly (10 sec or so) in 2.9.1.

I want to do some volume computations on it and because of the 'select 2 surfaces' bug, I need to use v2.10.alpha.
However, when I try loading it in 2.10.alpha, it loads very very slowly (i.e. about 2 hours) on the same machine. It seems CPU-bound (single thread at 100%).
The resulting model, once loaded, is OK though.

Any idea what the cause might be?
I'm using the Win64 build of v2.10.alpha.

Re: Very slow loading of OBJ file in 2.10.alpha

Posted: Thu Jul 12, 2018 10:00 am
by maarten
Update:
Not only the loading is slow, also segmentation takes much longer than before.
I delineated a region, segmented it (all quick) and then clicked the green V to finalize the segmentation.
This took a much longer time than before (appr 10 minutes).

Might there be an issue with way the surface is stored in memory? I tried opening and segmenting an OBJ file with 2M faces (instead of 8M like this one) and that is very fast. I have plenty of RAM (32GB on my laptop and 64GB on a desktop which showed the same symptoms).

Re: Very slow loading of OBJ file in 2.10.alpha

Posted: Thu Jul 26, 2018 7:24 pm
by daniel
Hum you are right, it's a bit strange. We'll have to look at this!

Re: Very slow loading of OBJ file in 2.10.alpha

Posted: Sat Jul 28, 2018 9:53 pm
by daniel
Okay, I'm not sure if it's the right reason,but I changed the code slightly so that it reserve memory less often. On my side it was speeding the loading process. Can you test it on your side? (I've update the 2.10.alpha online version)

Re: Very slow loading of OBJ file in 2.10.alpha

Posted: Mon Jul 30, 2018 9:47 am
by maarten
Hi Daniel,

Your patch definitely speeds up the loading process. My model now loads in a couple of minutes, compared to the 2 hours before the patch.
Segmentation ('confirming the segmentation') also seems a lot faster. Is that possible?

cheers,
Maarten

Re: Very slow loading of OBJ file in 2.10.alpha

Posted: Thu Aug 02, 2018 11:12 pm
by daniel
Ah no, it should be a totally separate problem : )