further work on retina and improving performance

git-svn-id: http://processing.googlecode.com/svn/trunk@10813 fe3ceab9-de17-3b67-bb2e-7d58edd5e4d6