Nope, it happens with any sketch, at least any that I've tried, even ones that don't use OpenGL or any other external library.
For instance, I'll use the very simple example at the bottom of this post, from the Processing reference. If all I have running is the Processing 90Beta, when I run that sketch "javaw.exe" uses 20-30% or so of the CPU and the graphical bar takes a good *three seconds* to cross the screen.
HOWEVER, if I simply start Firefox and go to homestarrunner.com (or any other website that uses the Flash plugin) and rerun that sketch, this time "javaw.exe" uses 80-90% of the cpu and the bar draws in less than *one second*.
Even without checking Task Manager, it's very, very obvious that the bar crosses the screen is less than half the time.
Like I said before, it's not just the Flash plugin that causes this weirdness - the Trillian chat program does as well, and probably others. Some applications don't inspire Java to operate with higher CPU though (Azareus doesn't, for one)
And also, like before, I can reproduce this on three different windows machines.. one of which isn't a computer I own and has completely different versions of things installed, including a different OS (Win2K vs WinXP). That said, it could still be a weird coincidence and this problem only affects these three machines.. so if anyone else can reproduce this, that would be really cool!
Let me know if you need any other information.
-- here's the little code snippet I described above. It'll probably be familiar!
void setup() {
size(200, 200);
background(0);
noStroke();
fill(102);
}
int a = 0;
void draw() {
rect(a++%width, 10, 2, 80);
}