I was doing some performance testing on a new project and noticed something really weird.
I am running Java 1.6.0_22 from Apple, you can check yours here
http://javatester.org/version.html. Processing version 1.2 0191 on a 3.06 GHz Intel core 2 Duo with 4 GB 800MHz ram imac and here's what I found from the activity monitor:
Sketch with nothing but void setup and draw in it, no code - peak to 13 % cpu, stabilizes at 2%
size(1280,960); in setup, the size of my app - peak at 38% cpu, stabilizes at 20%
background(0); in draw - peak and stabilizes at 98.9% cpu
change the renderer to Open GL - peak at 38 % cpu, stabilize at 2.5 % cpu
change the renderer to P3D - peak and stabilizes at 99% cpu
change the renderer to P2D - opens ar 90%, peaks to 99%, stabilizes at 98%
I was looking at this with a few other people in the office and we couldn't figure it out. We tried it on another machine using the older version of Java, 1.6.0_17 and nothing peaked over 35%, same model imac and processing version.
Version 1.6.0_22 is the newest version for Mac, and the last since they deprecated it, right?
Just wanted to see if anyone had noticed this, and if the solution is to just go back to the early version of Java, run everything in OpenGL when possible or something else.
Thanks in advance
James
www.uniformchaos.org
1