Very slow loading of OBJ file in 2.10.alpha

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
maarten
Posts: 4
Joined: Mon Jul 09, 2018 10:31 am

Very slow loading of OBJ file in 2.10.alpha

Post 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.
maarten
Posts: 4
Joined: Mon Jul 09, 2018 10:31 am

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

Post 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).
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

Hum you are right, it's a bit strange. We'll have to look at this!
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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)
Daniel, CloudCompare admin
maarten
Posts: 4
Joined: Mon Jul 09, 2018 10:31 am

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

Post 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
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

Ah no, it should be a totally separate problem : )
Daniel, CloudCompare admin
Post Reply