Hello,
My workplace uses a 3d application built on processing 4.2. I had no issues before, but trying to run it on my new laptop I got terrible performance, so I tried to have a look at the code and found that the beginDraw()
command takes extremely long to execute.
For testing, I created this simple code, where I’m logging the execution of the beginDraw()
command.
PGraphics pg;
boolean log = true;
void setup() {
size(1366, 768, P3D);
pg = createGraphics(4096, 4096, P3D);
}
void draw() {
float start = millis();
pg.beginDraw();
if (log) println (millis() - start);
log = false;
pg.endDraw();
}
According to the results, the beginDraw()
call takes ~13 seconds on average.
My PC is a brand new Asus Zenbook with a 12th gen intel i5 processor, 16 gbs of ddr5 ram, fast ssd and Intel Iris Xe integrated graphics, running Windows 11.
I’m aware that integrated graphics aren’t a perfect choice for processing, however this Iris Xe is supposed to be quite powerful, it’s meant for productivity tasks (I’m running GPU heavy apps like 3ds Max and After Effects without issues).
For reference, I also checked it on my wife’s ~7 years old Celeron PC, with 4 gb ram and integrated Intel HD graphics, and it was logging only 2.5 seconds execution time (which took 13 sconds on my laptop with 10 times the benchmark scores).
At this point I’m stuck, I’m not a programmer by any means, but I’d need to find a fix to run the app on my pc. Not sure if this could be a bug in Processing or maybe the GPU driver, or Windows 11, so if anyone has any helpful ideas, it would be highly appreciated. Also if there’s anyone around with similar PC specs or the same GPU it would be really helpful.
Note that I tried running it at my pc set to full performance, and I also tried the default renderer, which was all good, only P2D and P3D give me troubles - which are unfortunately a must.
Thank you!