Crazy high CPU usage with empty sketch on OS X
in
Integration and Hardware
•
8 months ago
Hi there,
I've been encountering this issue for a few months with no solution (yet). I've resorted to stripping my sketch down to nothing but a blank screen. I've tested this on Processing 1.5.1, 2.0b6, 2.0b7, and on OS 10.8.2 and 10.7.5:
An empty sketch (though with a large-ish screen), is giving me CPU usage of 25% and up (currently 45% on an iMac 3.06 Ghz Core i3 running OS X 10.7.5). This seems to happen independent of the Mac I've run it on (iMac, Macbook Pro, new Mac Mini). Is this just the baseline CPU usage for Processing? Is it a Java issue - and if so, is there a solution? My empty sketch is below. Any advice would be greatly appreciated. Many thanks!
Peter
----
// ------------------------------- //
// ------- Screen globals -------- //
// ------------------------------- //
int width = 1000;
int height = 625;
// ------------------------------- //
// ------- Initialization -------- //
// ------------------------------- //
void setup() {
size(width, height);
}
void draw() {
}
1