Starling on Linux

Adobe stopped supporting the conventional Flash plugin on Linux with version 11.2. That's the last version that's available for download, and it's only updated with security fixes.

However, not all is lost:

  • Up-to-date versions of Flash are available via Google's Chrome browser. Chrome comes bundled with the very latest Flash version; updates are installed automatically by the browser.
  • While Chromium does not contain that plugin, most Linux distributions make it easy to install the plugin that's used by Chrome (e.g. on Debian/Ubuntu, install the package “pepperflashplugin-nonfree”).

If you need your Starling to run in other browsers, you need to limit yourself to what's available in version 11.2 of the Flash Player. Below, you'll find an overview of how to do that.

Get Starling to work in Flash Player 11.2

Use Starling 1.8

To finally make use the very latest AIR features, the version requirements of Starling 2.0 were raised to Flash Player 19. However, Starling 1.8 will continue to receive support via bugfixes, and is keeping its downward compatibility with Flash Player 11.2; thus, that's the version you should use.

Test your Game with Software Rendering

Software mode is slow, no matter if you're are on Windows, OS X or Linux. If your game falls back to software mode, disable any special effects and reduce the number of display objects as much as possible.

To check for Software mode, you can use the following code snippet:

var isSW:Boolean = Starling.context.driverInfo.toLowerCase().indexOf("software") != -1;

To test your game in Software mode, pass Context3DRenderMode.SOFTWARE to the renderMode parameter of the Starling constructor.

Use "auto" Profile

Flash Player 11.2 does not support any render profiles except “baseline”. So I recommend you start Starling with the new “auto” profile or pass an array of profiles that includes “baseline”.

Use only Bitmap Fonts

On Linux, the Flash Player sometimes returns incorrect values about the position of text. Starling needs those values for text rendering, so it cannot place the text correctly; it will probably be cropped or won't be visible at all.

Bitmap Fonts always work, though. They are the fastest way to render text, anyway.

Do not use ATF textures

ATF textures are not supported by Flash Player 11.2. So you have to stick to normal PNGs or JPGs for your textures.

  manual/starling_on_linux.txt · Last modified: 2016/04/22 09:02 by daniel
 
Powered by DokuWiki