discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

cache issue?

TO
Trevor Orr
Fri, Feb 7, 2025 11:44 PM

I have a design I have been working that generates files for many animations called animate.scad.   I had one large data file to generate many different designs and it was making the animation generation script run rather slow.  So I created a script that will find the data for the particular design I want and save that to a single file called animation_data.scad.  Now when I run the animation generation script to generate animation images it runs pretty quickly.  The problem I have is that when I run my script to get the data for a different design and run the animation generation script it outputs blank images.  If I load the animation_data.scad in the OpenSCAD gui and do not make any changes and just save the file and run the animation generation script again the images are generated correctly.
Ideas of what is causing this? Some kind of caching issue in OpenSCAD?  

I have a design I have been working that generates files for many animations called animate.scad.   I had one large data file to generate many different designs and it was making the animation generation script run rather slow.  So I created a script that will find the data for the particular design I want and save that to a single file called animation_data.scad.  Now when I run the animation generation script to generate animation images it runs pretty quickly.  The problem I have is that when I run my script to get the data for a different design and run the animation generation script it outputs blank images.  If I load the animation_data.scad in the OpenSCAD gui and do not make any changes and just save the file and run the animation generation script again the images are generated correctly. Ideas of what is causing this? Some kind of caching issue in OpenSCAD?  
GH
gene heskett
Sat, Feb 8, 2025 3:46 AM

On 2/7/25 18:45, Trevor Orr via Discuss wrote:

I have a design I have been working that generates files for many animations called animate.scad.   I had one large data file to generate many different designs and it was making the animation generation script run rather slow.  So I created a script that will find the data for the particular design I want and save that to a single file called animation_data.scad.  Now when I run the animation generation script to generate animation images it runs pretty quickly.  The problem I have is that when I run my script to get the data for a different design and run the animation generation script it outputs blank images.  If I load the animation_data.scad in the OpenSCAD gui and do not make any changes and just save the file and run the animation generation script again the images are generated correctly.
Ideas of what is causing this? Some kind of caching issue in OpenSCAD?

The cache is something I should get in the habit of clearing when I am
fine tuning a size by less than a percent or so. So I get bit when the
print doesn't have the trim I did to the src 6 hours back. Creates a lot
of muttering.  You get good, or bad at that when you've spent 35 years
keeping a tv station on the air. News folks can screw up $30k worth a
cameras in a heartbeat. And blame me when they are the ones who ran a
fancy zoom lens into a door frame.  Isn't it supposed to bounce? I
actually got that question once.  She got an education right quick.  
And her tenure in front of the studio cameras was a bit less than usual.

Thanks guys.


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

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 2/7/25 18:45, Trevor Orr via Discuss wrote: > I have a design I have been working that generates files for many animations called animate.scad.   I had one large data file to generate many different designs and it was making the animation generation script run rather slow.  So I created a script that will find the data for the particular design I want and save that to a single file called animation_data.scad.  Now when I run the animation generation script to generate animation images it runs pretty quickly.  The problem I have is that when I run my script to get the data for a different design and run the animation generation script it outputs blank images.  If I load the animation_data.scad in the OpenSCAD gui and do not make any changes and just save the file and run the animation generation script again the images are generated correctly. > Ideas of what is causing this? Some kind of caching issue in OpenSCAD? The cache is something I should get in the habit of clearing when I am fine tuning a size by less than a percent or so. So I get bit when the print doesn't have the trim I did to the src 6 hours back. Creates a lot of muttering.  You get good, or bad at that when you've spent 35 years keeping a tv station on the air. News folks can screw up $30k worth a cameras in a heartbeat. And blame me when they are the ones who ran a fancy zoom lens into a door frame.  Isn't it supposed to bounce? I actually got that question once.  She got an education right quick.   And her tenure in front of the studio cameras was a bit less than usual. Thanks guys. > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
TO
Trevor Orr
Sat, Feb 8, 2025 4:20 AM

I wasn't meaning if there was a bug with the cache more of the way because
of how I was doing things.  Is there a way to clear the cache through
command line?

On February 7, 2025 7:46:11 PM gene heskett via Discuss
discuss@lists.openscad.org wrote:

On 2/7/25 18:45, Trevor Orr via Discuss wrote:

I have a design I have been working that generates files for many
animations called animate.scad.  I had one large data file to generate
many different designs and it was making the animation generation script
run rather slow.  So I created a script that will find the data for the
particular design I want and save that to a single file called
animation_data.scad.  Now when I run the animation generation script to
generate animation images it runs pretty quickly.  The problem I have is
that when I run my script to get the data for a different design and run
the animation generation script it outputs blank images.  If I load the
animation_data.scad in the OpenSCAD gui and do not make any changes and
just save the file and run the animation generation script again the images
are generated correctly.
Ideas of what is causing this? Some kind of caching issue in OpenSCAD?

The cache is something I should get in the habit of clearing when I am
fine tuning a size by less than a percent or so. So I get bit when the
print doesn't have the trim I did to the src 6 hours back. Creates a lot
of muttering.  You get good, or bad at that when you've spent 35 years
keeping a tv station on the air. News folks can screw up $30k worth a
cameras in a heartbeat. And blame me when they are the ones who ran a
fancy zoom lens into a door frame.  Isn't it supposed to bounce? I
actually got that question once.  She got an education right quick.
And her tenure in front of the studio cameras was a bit less than usual.

Thanks guys.


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

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis

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

I wasn't meaning if there was a bug with the cache more of the way because of how I was doing things. Is there a way to clear the cache through command line? On February 7, 2025 7:46:11 PM gene heskett via Discuss <discuss@lists.openscad.org> wrote: > On 2/7/25 18:45, Trevor Orr via Discuss wrote: >> I have a design I have been working that generates files for many >> animations called animate.scad. I had one large data file to generate >> many different designs and it was making the animation generation script >> run rather slow. So I created a script that will find the data for the >> particular design I want and save that to a single file called >> animation_data.scad. Now when I run the animation generation script to >> generate animation images it runs pretty quickly. The problem I have is >> that when I run my script to get the data for a different design and run >> the animation generation script it outputs blank images. If I load the >> animation_data.scad in the OpenSCAD gui and do not make any changes and >> just save the file and run the animation generation script again the images >> are generated correctly. >> Ideas of what is causing this? Some kind of caching issue in OpenSCAD? > > The cache is something I should get in the habit of clearing when I am > fine tuning a size by less than a percent or so. So I get bit when the > print doesn't have the trim I did to the src 6 hours back. Creates a lot > of muttering. You get good, or bad at that when you've spent 35 years > keeping a tv station on the air. News folks can screw up $30k worth a > cameras in a heartbeat. And blame me when they are the ones who ran a > fancy zoom lens into a door frame. Isn't it supposed to bounce? I > actually got that question once. She got an education right quick. > And her tenure in front of the studio cameras was a bit less than usual. > > Thanks guys. > >> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > Cheers, Gene Heskett, CET. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
GH
gene heskett
Sat, Feb 8, 2025 5:16 AM

On 2/7/25 23:21, Trevor Orr via Discuss wrote:

I wasn't meaning if there was a bug with the cache more of the way
because of how I was doing things.  Is there a way to clear the cache
through command line?

Its in the menu's.

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law
respectable.
 - Louis D. Brandeis


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


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

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis
On 2/7/25 23:21, Trevor Orr via Discuss wrote: > I wasn't meaning if there was a bug with the cache more of the way > because of how I was doing things.  Is there a way to clear the cache > through command line? > Its in the menu's. >> Cheers, Gene Heskett, CET. >> -- >> "There are four boxes to be used in defense of liberty: >>  soap, ballot, jury, and ammo. Please use in that order." >> -Ed Howdershelt (Author, 1940) >> If we desire respect for the law, we must first make the law >> respectable. >>  - Louis D. Brandeis >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org Cheers, Gene Heskett, CET. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis
TO
Trevor Orr
Sat, Feb 8, 2025 5:43 AM

I am trying not to use the GUI for this, doing everything from command
line. I only opened the data file in the GUI to see if it had something to
do with the cache.

On February 7, 2025 9:16:20 PM gene heskett via Discuss
discuss@lists.openscad.org wrote:

On 2/7/25 23:21, Trevor Orr via Discuss wrote:

I wasn't meaning if there was a bug with the cache more of the way
because of how I was doing things.  Is there a way to clear the cache
through command line?

Its in the menu's.

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law
respectable.

  • Louis D. Brandeis

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


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

Cheers, Gene Heskett, CET.

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.

  • Louis D. Brandeis

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

I am trying not to use the GUI for this, doing everything from command line. I only opened the data file in the GUI to see if it had something to do with the cache. On February 7, 2025 9:16:20 PM gene heskett via Discuss <discuss@lists.openscad.org> wrote: > On 2/7/25 23:21, Trevor Orr via Discuss wrote: >> I wasn't meaning if there was a bug with the cache more of the way >> because of how I was doing things. Is there a way to clear the cache >> through command line? >> > Its in the menu's. >>> Cheers, Gene Heskett, CET. >>> -- >>> "There are four boxes to be used in defense of liberty: >>> soap, ballot, jury, and ammo. Please use in that order." >>> -Ed Howdershelt (Author, 1940) >>> If we desire respect for the law, we must first make the law >>> respectable. >>> - Louis D. Brandeis >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > Cheers, Gene Heskett, CET. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
JB
Jordan Brown
Sat, Feb 8, 2025 4:04 PM

On Feb 7, 2025, at 9:44 PM, Trevor Orr via Discuss discuss@lists.openscad.org wrote:

I am trying not to use the GUI for this, doing everything from command line. I only opened the data file in the GUI to see if it had something to do with the cache.

Unless it has snuck in while I wasn’t looking, there is no cache that persists from one invocation to the next. That means that for the CLI the only cache is inside the model, caching the results of rendering multiple instances of the same subcomponent.

On Feb 7, 2025, at 9:44 PM, Trevor Orr via Discuss <discuss@lists.openscad.org> wrote: > I am trying not to use the GUI for this, doing everything from command line. I only opened the data file in the GUI to see if it had something to do with the cache. Unless it has snuck in while I wasn’t looking, there is no cache that persists from one invocation to the next. That means that for the CLI the only cache is inside the model, caching the results of rendering multiple instances of the same subcomponent.