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 & HelpSyntax Questions › Fastest mode for drawing
Page Index Toggle Pages: 1
Fastest mode for drawing (Read 562 times)
Fastest mode for drawing
Sep 9th, 2006, 1:24pm
 
I’ve been experimenting a bit with P3D and OPENGL to find the fastest mode for drawing a massive amount of lines and manipulating image data (plus later webcam feed).

I’ve played around with PGraphics2, PGraphics3, Pimage plus drawing directly to the screen.
Could some one explain which Graphics element works best with the different mode’s, im getting crazy doing tests.

Strangely by using an PGraphics object in OPENGL, plus updatePixels(), drawing lines are extreamly slow ?. what is the best and fastest routine for plotting pixels/lines and such

Kind regards
Mads
Re: Fastest mode for drawing
Reply #1 - Sep 9th, 2006, 2:35pm
 
OPENGL would be fastest for drawing lines, however it is much slower at dealing with images and load/updatePixels(). it's far faster than any of the others with very large screen sizes.

P3D will be reasonably fast for lines, and requires zero time to do load/updatePixels(), and should be fairly fast for images. it's limited on its ability to do large screen sizes by how java handles images.

JAVA2D (the default) is slow 2D, but accurate (smooth caps and joins on lines, etc).

P2D is temporarily unavailable, but will be like a 2D version of P3D, meaning that it will be fast and that you can easily do load/updatePixels.
Page Index Toggle Pages: 1