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 › Slow performance with PGraphics
Pages: 1 2 
Slow performance with PGraphics (Read 2879 times)
Re: Slow performance with PGraphics
Reply #15 - Aug 24th, 2009, 1:03am
 
hmm interesting, i am trying to find out why it is so...
its working when you use a PImage instead of an PGraphics...

ok i got it. Not sure if it is a bug. But it seems like its not working when creating your Pgraphics with Java2d. Using P2D oder P3D works fine but gives you some different results...  Is it a bug, or does anybody know the reason for this?!
Re: Slow performance with PGraphics
Reply #16 - Aug 24th, 2009, 1:58am
 
cavva:

Add a renderer in size and the tint problem will be gone.

size(500, 500,P2D); or size(500, 500, P3D);

Re: Slow performance with PGraphics
Reply #17 - Aug 24th, 2009, 10:52am
 
jaylfk wrote on Aug 24th, 2009, 1:58am:
cavva:

Add a renderer in size and the tint problem will be gone.

size(500, 500,P2D); or size(500, 500, P3D);



it work, but sound a little strange to me... as Cedric said before it looks like a bug

only java2d on java2d behave differently

Code:

// works
size(500, 500, P2D);
createGraphics(100, 100, P2D);

// works
size(500, 500, JAVA2D);
createGraphics(100, 100, P2D);

// works
size(500, 500, P2D);
createGraphics(100, 100, JAVA2D);

// don't work
size(500, 500, JAVA2D);
createGraphics(100, 100, JAVA2D);



Pages: 1 2