-
public class View.DynamicResolutionOptionsDynamic resolution can be used to either reach a desired target frame rateby lowering the resolution of a View, or to increase the quality when therendering is faster than the target frame rate.
This structure can be used to specify the minimum scale factor used whenlowering the resolution of a View, and the maximum scale factor used whenincreasing the resolution for higher quality rendering. The scale factorscan be controlled on each X and Y axis independently. By default, all scalefactors are set to 1.0.
- enabled: enable or disables dynamic resolution on a View
- homogeneousScaling: by default the system scales the major axis first. Set this to trueto force homogeneous scaling.
- minScale: the minimum scale in X and Y this View should use
- maxScale: the maximum scale in X and Y this View should use
- quality: upscaling quality.LOW: 1 bilinear tap, Medium: 4 bilinear taps, High: 9 bilinear taps (tent)
Note:Dynamic resolution is only supported on platforms where the time to rendera frame can be measured accurately. On platforms where this is not supported,Dynamic Resolution can't be enabled unless
minScale == maxScale.
-
-
Field Summary
Fields Modifier and Type Field Description public floatminScalepublic floatmaxScalepublic floatsharpnesspublic booleanenabledpublic booleanhomogeneousScalingpublic View.QualityLevelquality
-