Class View.DynamicResolutionOptions

  • Enclosing class:
    View

    public static class View.DynamicResolutionOptions
    extends java.lang.Object
    Dynamic resolution can be used to either reach a desired target frame rate by lowering the resolution of a View, or to increase the quality when the rendering is faster than the target frame rate.

    This structure can be used to specify the minimum scale factor used when lowering the resolution of a View, and the maximum scale factor used when increasing the resolution for higher quality rendering. The scale factors can be controlled on each X and Y axis independently. By default, all scale factors are set to 1.0.

    Dynamic resolution is only supported on platforms where the time to render a frame can be measured accurately. Dynamic resolution is currently only supported on Android.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean enabled
      Enables or disables dynamic resolution on a View.
      boolean homogeneousScaling
      If false, the system scales the major axis first.
      float maxScale
      The maximum scale in X and Y this View should use.
      float minScale
      The minimum scale in X and Y this View should use.
      View.QualityLevel quality
      Upscaling quality LOW: bilinear filtered blit.
      float sharpness
      Sharpness when QualityLevel.MEDIUM or higher is used [0, 1].
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • enabled

        public boolean enabled
        Enables or disables dynamic resolution on a View.
      • homogeneousScaling

        public boolean homogeneousScaling
        If false, the system scales the major axis first.
      • minScale

        public float minScale
        The minimum scale in X and Y this View should use.
      • maxScale

        public float maxScale
        The maximum scale in X and Y this View should use.
      • sharpness

        public float sharpness
        Sharpness when QualityLevel.MEDIUM or higher is used [0, 1]. 0 is disabled, 1 is the sharpest setting. The default is set to 0.9
      • quality

        @NonNull
        public View.QualityLevel quality
        Upscaling quality LOW: bilinear filtered blit. Fastest, poor quality MEDIUM: AMD FidelityFX FSR1 w/ mobile optimizations no RCAS sharpening pass HIGH: AMD FidelityFX FSR1 w/ mobile optimizations + RCAS ULTRA: AMD FidelityFX FSR1 FSR1 require a well anti-aliased (MSAA or TAA), noise free scene. The default upscaling quality is set to LOW.
    • Constructor Detail

      • DynamicResolutionOptions

        public DynamicResolutionOptions()