Loading...
Logo
Processing Forum
Hey guys! I have recently purchased a macbook pro retina and have noticed that when I compile and run a processing app from within the IDE it lags badly; however simple the app is. Sample below:

Copy code
  1. void setup(){size(1400,800);}
  2. void draw(){line(mouseX, mouseY, pmouseX, pmouseY);}

I have also noticed the following workarounds:
  1. Running an app through the IDE works fine if I move the app's window from the 15" retina screen to any other connected external display.
  2. An "exported application" runs fine.
  3. When running an app through the IDE on windows 7 through bootcamp everything runs fine.
  4. When running an app through the IDE on a virtual windows 7 machine running through Parallels everything runs fine too.
  5. Using OPENGL instead of P2D/P3D also seams to solve the problem. (not really a good workaround cause this means I need to drastically change my code to achieve the same effects.)
So I guess the lag issue is caused by os x 10.8.2 and the processing 1.5.1 IDE not playing nicely because the IDE is not "retina ready". That's why everything runs smoothly on windows 7 (virtual or otherwise) and similarly well on any connected external displays.

The question is, is there anything I can do to resolve this issue? a patch possibly? upgrading to processing 2.0 maybe? Or do I have to use one of the 5 workarounds mentioned above?

Thanks in advance!
Yousef

Replies(6)

I am having the exact same problem, and your workarounds (I was using some of them already) are working as you've stated.

But it's sad to see that the only post that has "retina" and "macbook" as keywords in its title is this one, and that this problem is still not recognized. I hope it will be fixed as soon as possible.
Hey Zesnuk, it might be that there aren't many people using processing on the retinas yet. 

I have found one more workaround that has proven useful for other issues that are related to the HiDPI resolution and that is the free QuickRes app ( http://www.quickresapp.com ) which lets you set a non HiDPI resolution of 1920x1200 , amongst many other options. I've now set it to quickly switch from HiDPI to not so high DPI with a quick shortcut. Hope this helps.

Any news on a proper fix though? Does anyone know if this issue has been fixed in processing 2.0 beta 5? Thanks.
There's an open issue for what I assume is the same problem  here
Thanks for the reference velvetkevorkian. I'm not sure it relates to running code directly in the IDE though, because it doesn't state so specifically. Personally, I've not had any problems when running an exported application.

I've reposted this problem on that same issue tracking portal over  here and hopefully it will gain some more traction. Thanks. :)
Just tried out using OpenGL for my application and it worked like a charm!
Copy code
  1. setup(){ size(1280, 720, OPENGL);
The only problem I'm having now is that fonts are rendered in a way that they always seem a bit blurry (problem with the HiDPI mode again); I guess I'll have to find a workaround for that.

P.S: It seems that P2D and P3D render modes also use OpenGL (updated on beta versions of Processing 2.0, I'm currently working on 2.0-b6), and I can confirm that they perform just as well.

Hope it helps, good luck.
ZeSnuk
Hi, just started with a retina display, same behaviour as described. Already using QuickRes. I'm in 1.5.1, but there is this entry about retina display in wiki, have you seen?