Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
ttbitg
ttbitg's Profile
1
Posts
6
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
PGraphics slow
[10 Replies]
03-Sep-2010 07:28 AM
Forum:
Programming Questions
Hi everybody,
the following sketch is giving me a framerate of about 4.
My graphics card is an Nvidia Geforce 8600M GT.
I'm totally surpised that such a simple skech runs so slow. Am i expecting too much or is there something wrng with the way i'm doing this?
Thanks for any support
import processing.opengl.*;
PGraphics pg = null;
public void setup() {
size(1440, 900, OPENGL);
pg = createGraphics(width, height, P2D);
frameRate(60);
}
public void draw() {
background(0);
println("frameRate = " + frameRate);
pg.beginDraw();
pg.fill(255);
pg.rect(mouseX, mouseY, 20, 20);
pg.fill(0, 30);
pg.rect(0, 0, width, height);
pg.endDraw();
image(pg, 0, 0);
}
«Prev
Next »
Moderate user : ttbitg
Forum