So I recently started using Processing and I've encountered an issues with sketches being very slow if I try to create an even remotely complex sketch. While trying to find and test ways to create a glow effect I found this sketch:
http://www.openprocessing.org/sketch/85194 and saw that it was working at a perfectly normal speed inside Chrome so I copied the code directly into Processing only to find when I ran it it was only going a few frames per second. All the while the applet in chrome is still running at 60 fps.
I opened Task Manager and could see both java.exe processes. Both were using up 25% of my CPU but the process for the processing sketch was using twice as much memory. I did this on my laptop too and got the same laggy results.
I would think the issue lies in JVM but I can't imagine why it would let an applet play perfectly fine but not Processing.
Any help in solving this would be greatly appreciated. I'm working on a real time music visualizer so it's essential the sketch has little to no lag.
Information that may or may not be relevant: I'm using Windows 7 64 bit. Java version 1.7 is installed. I have 4gb of memory and a decent Nvidia graphics card.