About a year ago, I flagged this issue, where all of a sudden, all my Processing sketches running the standard P2D renderer slowed down to an unusable rate. Due to invisible pixie objects, as PhiLo named them:
I filed a bug report, but this was dismissed as a known problem of medium priority (?) and the problem persists, even on a brand new machine running a different os and everything.
Running this on a macbook pro i7, v1.5.1:
- import processing.opengl.*;
- boolean below = false;
- float last;
- void setup()
- {
- size(screen.width, screen.height, OPENGL);
- }
- void draw()
- {
- if(frameRate < 40) {
- if(!below) {
- float t = millis()/1000.0;
- println("Slowing down below 40 at: "+nf(t, 1, 2)+" sec, "+nf(t-last, 1, 2)+" sec since last time");
- last = t;
- }
- below = true;
- } else {
- below = false;
- }
- //println(frameRate);
- }
Results in this output:
Slowing down below 40 at: 1.55 sec, 1.55 sec since last time
Slowing down below 40 at: 8.99 sec, 7.44 sec since last time
Slowing down below 40 at: 23.87 sec, 14.88 sec since last time
Slowing down below 40 at: 38.81 sec, 14.95 sec since last time
Slowing down below 40 at: 53.83 sec, 15.01 sec since last time
Slowing down below 40 at: 68.74 sec, 14.91 sec since last time
Slowing down below 40 at: 83.68 sec, 14.95 sec since last time
Slowing down below 40 at: 98.66 sec, 14.98 sec since last time
Slowing down below 40 at: 113.59 sec, 14.93 sec since last time
Slowing down below 40 at: 128.50 sec, 14.91 sec since last time
Pretty regular (and severe) no?
Can anyone else reproduce this?
1