We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › save eats cpu
Page Index Toggle Pages: 1
save eats cpu (Read 829 times)
save eats cpu
Oct 10th, 2005, 4:22am
 
something's weird with save in JAVA2D.  after saving a single file the cpu meter (activity monitor) hits the roof and won't come down.
b91, tibook 1ghz, osx.3.9


boolean clicked= false;
void setup() {
 size(800, 600, JAVA2D);  //trouble.  first 16%.  then after clicked save 78%!
 //size(800, 600, P3D);    //ok.  stays put at 34%
 framerate(15);
}
void draw() {
 line(10, 10, random(width), random(height));
 if(mousePressed&&clicked==false) {
   save("asdf.tif");
   //saveFrame("asdf.tga");  //same with saveFrame and tga
   clicked= true;
   println("saved");
 }
}
Re: save eats cpu
Reply #1 - Oct 10th, 2005, 4:57pm
 
this code seems to work fine for me on my albook 1.5 running osx 10.3.9.
Re: save eats cpu
Reply #2 - Oct 10th, 2005, 7:41pm
 
thanks for taking a look.  same problem here on another computer - minimac with x.3.9  1.25ghz.  any ideas?
_rf
Re: save eats cpu
Reply #3 - Oct 15th, 2005, 7:40pm
 
not really.. has anyone else run into this?

any chance you're using a development version of java? (downloaded from the dev library at connect.apple.com) or something else strange on these machines?
Re: save eats cpu
Reply #4 - Oct 27th, 2005, 12:51am
 
same problem using v93 and 2-yr-old powerbook running OS 10.4.2
Re: save eats cpu
Reply #5 - Oct 30th, 2005, 1:29am
 
k, finally managed to get this to reproduce. bumps up to ~75% on my machine and doesn't come down..

filed as a bug, please do any follow-up here:
http://dev.processing.org/bugs/show_bug.cgi?id=189
Page Index Toggle Pages: 1