discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Rendering speed SVG is now slower

JC
Jesse Campbell
Wed, Sep 4, 2024 3:04 PM

Hi,

I am rendering an SVG extrusion.  It takes about 10 seconds using
"openscad-2020.10.11.ci6009" and about 2 minutes using
"OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, and how
to speed up the rendering time?

These are the files: https://mylabyrinthlab.com/data/1y4a2u/

Regards,

Jesse

Hi, I am rendering an SVG extrusion.  It takes about 10 seconds using "openscad-2020.10.11.ci6009" and about 2 minutes using "OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, and how to speed up the rendering time? These are the files: https://mylabyrinthlab.com/data/1y4a2u/ Regards, Jesse
TA
Todd Allen
Wed, Sep 4, 2024 3:56 PM

I can't speak at all to your question on the rendering times but your SVG
looks like an approach to printing a cylinder with thick walls in vase
mode.  Is that the goal or is it just a maze?

On Wed, Sep 4, 2024 at 10:04 AM Jesse Campbell via Discuss <
discuss@lists.openscad.org> wrote:

Hi,

I am rendering an SVG extrusion.  It takes about 10 seconds using
"openscad-2020.10.11.ci6009" and about 2 minutes using
"OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, and how
to speed up the rendering time?

These are the files: https://mylabyrinthlab.com/data/1y4a2u/

Regards,

Jesse


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I can't speak at all to your question on the rendering times but your SVG looks like an approach to printing a cylinder with thick walls in vase mode. Is that the goal or is it just a maze? On Wed, Sep 4, 2024 at 10:04 AM Jesse Campbell via Discuss < discuss@lists.openscad.org> wrote: > Hi, > > I am rendering an SVG extrusion. It takes about 10 seconds using > "openscad-2020.10.11.ci6009" and about 2 minutes using > "OpenSCAD-2024.08.30-x86-64". Can anyone explain why it's slow, and how > to speed up the rendering time? > > These are the files: https://mylabyrinthlab.com/data/1y4a2u/ > > Regards, > > Jesse > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
CK
Chun Kit LAM
Wed, Sep 4, 2024 5:04 PM

I had a look at the profiler output with the latest master. Apparently
clipper is really slow in dealing with this offset operation, but I
don't know why it was faster before. I tried with clipper2 and it is
fast enough (13 seconds vs 1 minutes), but apparently still slower than
the old version.

Do note that the offset operation here is probably making everything
intersect with everything, which is normal to be slow...

On 4/9/2024 23:56, Todd Allen via Discuss wrote:

I can't speak at all to your question on the rendering times but your
SVG looks like an approach to printing a cylinder with thick walls in
vase mode.  Is that the goal or is it just a maze?

On Wed, Sep 4, 2024 at 10:04 AM Jesse Campbell via Discuss
discuss@lists.openscad.org wrote:

 Hi,

 I am rendering an SVG extrusion.  It takes about 10 seconds using
 "openscad-2020.10.11.ci6009" and about 2 minutes using
 "OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow,
 and how
 to speed up the rendering time?

 These are the files: https://mylabyrinthlab.com/data/1y4a2u/

 Regards,

 Jesse
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

I had a look at the profiler output with the latest master. Apparently clipper is really slow in dealing with this offset operation, but I don't know why it was faster before. I tried with clipper2 and it is fast enough (13 seconds vs 1 minutes), but apparently still slower than the old version. Do note that the offset operation here is probably making everything intersect with everything, which is normal to be slow... On 4/9/2024 23:56, Todd Allen via Discuss wrote: > I can't speak at all to your question on the rendering times but your > SVG looks like an approach to printing a cylinder with thick walls in > vase mode.  Is that the goal or is it just a maze? > > On Wed, Sep 4, 2024 at 10:04 AM Jesse Campbell via Discuss > <discuss@lists.openscad.org> wrote: > > Hi, > > I am rendering an SVG extrusion.  It takes about 10 seconds using > "openscad-2020.10.11.ci6009" and about 2 minutes using > "OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, > and how > to speed up the rendering time? > > These are the files: https://mylabyrinthlab.com/data/1y4a2u/ > > Regards, > > Jesse > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
CK
Chun Kit LAM
Wed, Sep 4, 2024 5:20 PM

Sorry, just to fix my previous comment: Newer version of clipper2 works
fine and is really fast for this one, it took less than 0.2s in total.
Not entirely sure why the older version of clipper2 and clipper1 are slow...

On 5/9/2024 01:04, Chun Kit LAM wrote:

I had a look at the profiler output with the latest master. Apparently
clipper is really slow in dealing with this offset operation, but I
don't know why it was faster before. I tried with clipper2 and it is
fast enough (13 seconds vs 1 minutes), but apparently still slower
than the old version.

Do note that the offset operation here is probably making everything
intersect with everything, which is normal to be slow...

On 4/9/2024 23:56, Todd Allen via Discuss wrote:

I can't speak at all to your question on the rendering times but your
SVG looks like an approach to printing a cylinder with thick walls in
vase mode.  Is that the goal or is it just a maze?

On Wed, Sep 4, 2024 at 10:04 AM Jesse Campbell via Discuss
discuss@lists.openscad.org wrote:

 Hi,

 I am rendering an SVG extrusion.  It takes about 10 seconds using
 "openscad-2020.10.11.ci6009" and about 2 minutes using
 "OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow,
 and how
 to speed up the rendering time?

 These are the files: https://mylabyrinthlab.com/data/1y4a2u/

 Regards,

 Jesse
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org

OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Sorry, just to fix my previous comment: Newer version of clipper2 works fine and is really fast for this one, it took less than 0.2s in total. Not entirely sure why the older version of clipper2 and clipper1 are slow... On 5/9/2024 01:04, Chun Kit LAM wrote: > > I had a look at the profiler output with the latest master. Apparently > clipper is really slow in dealing with this offset operation, but I > don't know why it was faster before. I tried with clipper2 and it is > fast enough (13 seconds vs 1 minutes), but apparently still slower > than the old version. > > Do note that the offset operation here is probably making everything > intersect with everything, which is normal to be slow... > > On 4/9/2024 23:56, Todd Allen via Discuss wrote: >> I can't speak at all to your question on the rendering times but your >> SVG looks like an approach to printing a cylinder with thick walls in >> vase mode.  Is that the goal or is it just a maze? >> >> On Wed, Sep 4, 2024 at 10:04 AM Jesse Campbell via Discuss >> <discuss@lists.openscad.org> wrote: >> >> Hi, >> >> I am rendering an SVG extrusion.  It takes about 10 seconds using >> "openscad-2020.10.11.ci6009" and about 2 minutes using >> "OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, >> and how >> to speed up the rendering time? >> >> These are the files: https://mylabyrinthlab.com/data/1y4a2u/ >> >> Regards, >> >> Jesse >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org
MK
Marius Kintel
Wed, Sep 4, 2024 9:12 PM

This is probably worth investigating in more detail. Could you open an issue on https://github.com/openscad/openscad/issues so we can take the discussion there?

-Marius

On Sep 4, 2024, at 11:04, Jesse Campbell via Discuss discuss@lists.openscad.org wrote:

Hi,

I am rendering an SVG extrusion.  It takes about 10 seconds using
"openscad-2020.10.11.ci6009" and about 2 minutes using
"OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, and how
to speed up the rendering time?

These are the files: https://mylabyrinthlab.com/data/1y4a2u/

Regards,

Jesse


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

This is probably worth investigating in more detail. Could you open an issue on https://github.com/openscad/openscad/issues so we can take the discussion there? -Marius > On Sep 4, 2024, at 11:04, Jesse Campbell via Discuss <discuss@lists.openscad.org> wrote: > > Hi, > > I am rendering an SVG extrusion. It takes about 10 seconds using > "openscad-2020.10.11.ci6009" and about 2 minutes using > "OpenSCAD-2024.08.30-x86-64". Can anyone explain why it's slow, and how > to speed up the rendering time? > > These are the files: https://mylabyrinthlab.com/data/1y4a2u/ > > Regards, > > Jesse > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JC
Jesse Campbell
Wed, Sep 4, 2024 11:34 PM

Ok, added: https://github.com/openscad/openscad/issues/5281

On 9/4/2024 5:12 PM, Marius Kintel via Discuss wrote:

This is probably worth investigating in more detail. Could you open an
issue on https://github.com/openscad/openscad/issues so we can take
the discussion there?

 -Marius

On Sep 4, 2024, at 11:04, Jesse Campbell via Discuss
discuss@lists.openscad.org wrote:

Hi,

I am rendering an SVG extrusion.  It takes about 10 seconds using
"openscad-2020.10.11.ci6009" and about 2 minutes using
"OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, and how
to speed up the rendering time?

These are the files: https://mylabyrinthlab.com/data/1y4a2u/

Regards,

Jesse


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org

Ok, added: https://github.com/openscad/openscad/issues/5281 On 9/4/2024 5:12 PM, Marius Kintel via Discuss wrote: > This is probably worth investigating in more detail. Could you open an > issue on https://github.com/openscad/openscad/issues so we can take > the discussion there? > >  -Marius > >> On Sep 4, 2024, at 11:04, Jesse Campbell via Discuss >> <discuss@lists.openscad.org> wrote: >> >> Hi, >> >> I am rendering an SVG extrusion.  It takes about 10 seconds using >> "openscad-2020.10.11.ci6009" and about 2 minutes using >> "OpenSCAD-2024.08.30-x86-64".  Can anyone explain why it's slow, and how >> to speed up the rendering time? >> >> These are the files: https://mylabyrinthlab.com/data/1y4a2u/ >> >> Regards, >> >> Jesse >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org