Compile time

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile time

Remco Hosman
Dear list,

Is there anything i can do to speedup the compile process? I have a
quite simple part with 6 spheres, 2 cones, all of them translated,
scaled and rotated and 2 intersects.
i use $fn=100. the preview completes in less then a second, and even
animations are quite smooth.

However when i try to compile it, it takes about 7 minutes! my machine
is a athlon 64 X2 4200.

Is this normal? can i do anything to speed up the process?

Thanks in advance,
Remco Hosman

Reply | Threaded
Open this post in threaded view
|

Re: Compile time

Giles Bathgate
On 28/06/2010 07:52, Remco Hosman wrote:

> Dear list,
>
> Is there anything i can do to speedup the compile process? I have a
> quite simple part with 6 spheres, 2 cones, all of them translated,
> scaled and rotated and 2 intersects.
> i use $fn=100. the preview completes in less then a second, and even
> animations are quite smooth.
>
> However when i try to compile it, it takes about 7 minutes! my machine
> is a athlon 64 X2 4200.
>
> Is this normal? can i do anything to speed up the process?
>
> Thanks in advance,
> Remco Hosman
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>    
use $fn=50 ?

Reply | Threaded
Open this post in threaded view
|

Re: Compile time

Remco Hosman


Giles Bathgate schreef:

> On 28/06/2010 07:52, Remco Hosman wrote:
>  
>> Dear list,
>>
>> Is there anything i can do to speedup the compile process? I have a
>> quite simple part with 6 spheres, 2 cones, all of them translated,
>> scaled and rotated and 2 intersects.
>> i use $fn=100. the preview completes in less then a second, and even
>> animations are quite smooth.
>>
>> However when i try to compile it, it takes about 7 minutes! my machine
>> is a athlon 64 X2 4200.
>>
>> Is this normal? can i do anything to speed up the process?
>>
>> Thanks in advance,
>> Remco Hosman
>>
>>    
> use $fn=50 ?
>
>  
Hehe, ofcourse that works fine for tests. But it will be printed on a
high-res 3d printer. For the final version the part will have 10 - 25x
more primitives, and we would like to compile it with $fn=200. Even with
the current part, i had to kill openscad when i tried to compile with
$fn=200 after 3 hours.

Remco

Reply | Threaded
Open this post in threaded view
|

Re: Compile time

Giles Bathgate
On 28/06/2010 09:11, Remco Hosman wrote:

>
> Giles Bathgate schreef:
>    
>> On 28/06/2010 07:52, Remco Hosman wrote:
>>
>>      
>>> Dear list,
>>>
>>> Is there anything i can do to speedup the compile process? I have a
>>> quite simple part with 6 spheres, 2 cones, all of them translated,
>>> scaled and rotated and 2 intersects.
>>> i use $fn=100. the preview completes in less then a second, and even
>>> animations are quite smooth.
>>>
>>> However when i try to compile it, it takes about 7 minutes! my machine
>>> is a athlon 64 X2 4200.
>>>
>>> Is this normal? can i do anything to speed up the process?
>>>
>>> Thanks in advance,
>>> Remco Hosman
>>>
>>>
>>>        
>> use $fn=50 ?
>>
>>
>>      
> Hehe, ofcourse that works fine for tests. But it will be printed on a
> high-res 3d printer. For the final version the part will have 10 - 25x
> more primitives, and we would like to compile it with $fn=200. Even with
> the current part, i had to kill openscad when i tried to compile with
> $fn=200 after 3 hours.
>
> Remco
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>    
Maybe investigate the effects of using $fs or $fa instead of $fn. $fn=50
is more than high enough resolution for any 3D printing I have ever
done. So $fn of 100 or 200 sounds excessive. either way, I think its
"normal" that it should be taking longer if you make that number bigger.

Regards

Giles

Reply | Threaded
Open this post in threaded view
|

Re: Compile time

Remco Hosman


Giles Bathgate schreef:

> On 28/06/2010 09:11, Remco Hosman wrote:
>  
>> Giles Bathgate schreef:
>>    
>>    
>>> On 28/06/2010 07:52, Remco Hosman wrote:
>>>
>>>      
>>>      
>>>> Dear list,
>>>>
>>>> Is there anything i can do to speedup the compile process? I have a
>>>> quite simple part with 6 spheres, 2 cones, all of them translated,
>>>> scaled and rotated and 2 intersects.
>>>> i use $fn=100. the preview completes in less then a second, and even
>>>> animations are quite smooth.
>>>>
>>>> However when i try to compile it, it takes about 7 minutes! my machine
>>>> is a athlon 64 X2 4200.
>>>>
>>>> Is this normal? can i do anything to speed up the process?
>>>>
>>>> Thanks in advance,
>>>> Remco Hosman
>>>>      
>>>>        
>>> use $fn=50 ?
>>>    
>>>      
>> Hehe, ofcourse that works fine for tests. But it will be printed on a
>> high-res 3d printer. For the final version the part will have 10 - 25x
>> more primitives, and we would like to compile it with $fn=200. Even with
>> the current part, i had to kill openscad when i tried to compile with
>> $fn=200 after 3 hours.
>>
>> Remco
>>
>>    
> Maybe investigate the effects of using $fs or $fa instead of $fn. $fn=50
> is more than high enough resolution for any 3D printing I have ever
> done. So $fn of 100 or 200 sounds excessive. either way, I think its
> "normal" that it should be taking longer if you make that number bigger.
>
> Regards
>
> Giles
>
>  
I understand that it will take time, but i was not expecting it to be
this long. Especialy the difference between compile and preview

Remco

Reply | Threaded
Open this post in threaded view
|

Re: Compile time

kintel
Administrator
On Jun 28, 2010, at 10:32 AM, Remco Hosman wrote:
> I understand that it will take time, but i was not expecting it to be
> this long. Especialy the difference between compile and preview
>

Preview is done in image space and is almost instantaneous, except for operations where CGAL is brought in to calculate partial results (e.g. 2D CSG, polygon tessellation, projection).

I'm also unhappy about the sometimes extreme calculation times and hope to someday improve this..

~/= Marius

--
We are Elektropeople for a better living.