maxPixelRatio property

num maxPixelRatio
getter/setter pair

The maximum pixel ratio used to initialize the Stage.

This value will limit the pixel ratio for HiDPI screens. The native pixel ratio of the device may be to high for you application to achieve good performance. If the native pixel ratio is for instance 3.0 you may set the maxPixelRatio to 2.0 or even 1.0 if the performance is more important than perfectly sharp edges or pixels.

Implementation

num maxPixelRatio = 5.0;