FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   whats the maximum value for size(xx,yy)?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: whats the maximum value for size(xx,yy)?  (Read 349 times)
trip

triparepa WWW Email
whats the maximum value for size(xx,yy)?
« on: Mar 9th, 2004, 6:47am »

Hey all
 
I've been trying to create images for print using relatively high values for xx and yy in size(xx, yy). I've suceeded with images as large as 4000x5080, but most anything higher than that breaks Processing. I start getting strange "Array out of bounds" errors all of a sudden, in situations that at lower "stage" sizes behave normally.
 
Mind you that I am not getting "out of memory" messages... took care of that with running in expert mode with lots of memory.
 
Anyway, just curious why this breaks Processing. I'm sure that there is a way to draw without the screen using BImage(s) and the JPEG/PNG exporters detailed elsewhere on the boards...
 
c
 
toxi_
Guest
Email
Re: whats the maximum value for size(xx,yy)?
« Reply #1 on: Mar 9th, 2004, 1:01pm »

if it's not "out of memory" exceptions what exactly are you doing in your sketch?
 
trip

triparepa WWW Email
Re: whats the maximum value for size(xx,yy)?
« Reply #2 on: Mar 9th, 2004, 8:12pm »

I couldn't replicate this behavior on my other machine... weird.
 
On the machine that can't do big sketches, the following happens:
After giving the sketch a size of  
size(5000, 5000)
and running it
 
If you look (in winXP) at the task manager, in the performance tab, you'll see that javaw starts using up memory and cpu power and then it "gives up". Cpu usage goes to 0 and memory usage goes down to 20megs or so. By this time Processing is frozen, and the sketch window never showed up. And when you force it to quit you are left with a REALLY sluggish computer. I assume this is due to the virtual memory in winXP being turned to mush.
 
anyway, the problem may be on my end, because one computer can do it, the other can't
 
c
« Last Edit: Mar 9th, 2004, 8:17pm by trip »  
mKoser

WWW Email
Re: whats the maximum value for size(xx,yy)?
« Reply #3 on: Mar 9th, 2004, 8:41pm »

just gave it a go on my XP-machine.
 
Code:

void setup(){
  size(7300, 7300);
}
 
void draw(){
  println("done!... ");
  println("sketch is " + width + "x" + height);
  println("... well done processing, big boy!");
  save("this_is_big.tiff");
}

 
7300x7300 is just about as much as I can push it when setting the memory-usage to 512mb... any higher than that throws a OutOfMemory error.
 
(the saved .tiff file is 152mb hehe!)
 
+ mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Pages: 1 

« Previous topic | Next topic »