The current state of Flash content on the new MacBook Pro Retina (HiDPI) display is certainly a little underwhelming compared to HTML content in Safari. I thought I’d share with you that we are actively working to support the new displays. What exactly that means in the end is still work in progress. But to illustrate here are a couple of comparison screenshots which show what we are working on:
The second screenshot shows YouTube (other major video sites like Vimeo work great too):
What can you expect for your content? Here is the current state of affairs:
- Usually no changes to your SWFs are required. If you use vector graphics they will be transparently scaled up.
- Bitmap filters scale up transparently as do most other effects if your display list object is on the main display list.
- On the ActionScript side Flash pixel units remain in the unit space, i.e. an ActionScript pixel (or point in OSX) is actually 2×2 screen pixels on a Retina display. This works similarly of how OSX approaches this with CoreGraphics and CoreAnimation.
- You will be able to access a new property: Stage.contentsScaleFactor. This property tells you if the Stage is on a HiDPI display or not. You could for instance use this property to load higher resolution bitmaps if you’d like.
- Stage3D will work slightly differently. As a Retina display quadruples the number of pixels it could result in a huge performance loss. And of course your code might be highly dependent on actual back buffer sizes (for instance if you do render to texture, pixel effects and such). So the Flash Player will not change the back buffer size by default. To enable HiDPI displays we will add a new flag to Context3D.configureBackBuffer (the exact API is not fleshed out yet) which will allow you to buy into a higher resolution back buffer. Most 2D frameworks based on Stage3D will probably want to do this. Again this approach is similar to what is done on OSX, see documentation around setWantsBestResolutionOpenGLSurface.
Of course we expect a few issues here and there but from what we have tested so far most sites work great in this new mode, including big franchises like FarmVille and Angry Birds.