We are about to switch to a new forum software. Until then we have removed the registration on this forum.
MacBook Pro (Retina, 13-inch, Early 2015) Processor 2.7 GHz Intel Core i5 Memory 8 GB 1867 MHz DDR3 Graphics Intel Iris Graphics 6100 1536 MB
Why would such a simple sketch
void setup() {
size(1000, 625);
pixelDensity(displayDensity());
}
void draw() {
background(0);
ellipse(1280/2, 800/2, 500, 500);
}
cause my fans to go off; and push the CPU so much
Lore
Answers
I should of added this will start off and be at 80% plus from the start. Also I am running latest version of processing
Brainstorm:
What does this print out in your console for
displayDensity()
?Is it rendering at retina resolution or higher? Does the sketch also perform badly when not rendering at retina resolution, as with this example?
If you drop to
size(1000, 625)
does the sketch still perform badly?Are you running many other programs while the sketch is running?
---the println printed a "2" in the console from the code you shared above
1] I am using this for the mean time on a 13 inch rather than using the thunder display
2] for now I decided to use the likes of
it is still chewing the processor
3] I am baffled
Based on your final screenshot, it looks like you are getting high CPU time even without calling pixelDensity. The problem may simply be proportional to the number of pixels in your sketch surface.
Is this also giving you high CPU time?
I have the the same issue, but my macbook is older. MacBook Pro (15-inch, Early 2011)
I thought I was doing something to cause memory leaks in the sketch I was working on, but I was surprised that even just running the simple sketch at the top of this thread caused such high cpu drain.
Is this a processing bug perhaps? Did you ever find a solution?