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 & HelpOpenGL and 3D Libraries › JAVA2D faster than OPENGL?
Page Index Toggle Pages: 1
JAVA2D faster than OPENGL?? (Read 765 times)
JAVA2D faster than OPENGL??
Mar 13th, 2007, 7:13am
 
[see below for attached program] I've noticed that when pressing run, Opengl is 10-20% faster than Java2D. but when exported as application, Opengl's speed drops to half, thus slower than Java2D. Is this suppose to happen? Note that I am only testing using 2D images and vectors.

I've been testing this code:
Code:

import processing.opengl.*;

PFont font;

void setup()
{
font=loadFont("AbadiMT-CondensedExtraBold-15.vlw");

//swap between JAVA2D and OPENGL
size(300,300,OPENGL);
textFont(font, 12);
frameRate(400);
}
void draw() {
background(0);
fill(255);

text (frameRate,100,100);
fill(0);
rect(20, 20, 60, 60);
}

void mousePressed() {
link("http://processing.org");


}
Page Index Toggle Pages: 1