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.
IndexProgramming Questions & HelpPrograms › size(1000, 1000); Draw runs slow
Page Index Toggle Pages: 1
size(1000, 1000); Draw runs slow (Read 726 times)
size(1000, 1000); Draw runs slow
Feb 25th, 2006, 8:03am
 
Hi, I have a simple sketch that runs many times faster if I set the size to (200, 1000) - why is this and is there a way around it?

Thanks,

4dplane
Re: size(1000, 1000); Draw runs slow
Reply #1 - Feb 25th, 2006, 10:23am
 
Maybe try using the P3D renderer if you're doing any pixel based stuff or OpenGL if you're not. 1000x1000 is 5 times the pixels of 1000x200 so any software renderer (maybe not OpenGL) is gonna go slower at that size.
Re: size(1000, 1000); Draw runs slow
Reply #2 - Feb 25th, 2006, 4:48pm
 
this is largely a limitation of java, it's extremely slow at moving pixels to the screen. you'll notice that even a blank sketch at size(1000, 1000) runs far slower than size(100, 100) (also depends on the renderer).

opengl removes this issue, but you lose most of the pixel-based operations.
Re: size(1000, 1000); Draw runs slow
Reply #3 - Feb 26th, 2006, 6:14am
 
Thanks,

That helps a lot; I always thought of interacting with OpenGL to be more complex - here it clearly is not and that is fantastic.

Thanks,

4dplane
Re: size(1000, 1000); Draw runs slow
Reply #4 - Apr 11th, 2006, 2:37pm
 
Would't it be possible to use Blitting (http://en.wikipedia.org/wiki/Blitting) just like any gameproject uses when working in this size? The technique not always draws the whole screen at every loop, but only the parts that change.
Page Index Toggle Pages: 1