Class Renderer.FrameRateOptions

  • Enclosing class:
    Renderer

    public static class Renderer.FrameRateOptions
    extends java.lang.Object
    Use FrameRateOptions to set the desired frame rate and control how quickly the system reacts to GPU load changes. interval: desired frame interval in multiple of the refresh period, set in DisplayInfo (as 1 / DisplayInfo.refreshRate) The parameters below are relevant when some Views are using dynamic resolution scaling: headRoomRatio: additional headroom for the GPU as a ratio of the targetFrameTime. Useful for taking into account constant costs like post-processing or GPU drivers on different platforms. history: History size. higher values, tend to filter more (clamped to 30) scaleRate: rate at which the gpu load is adjusted to reach the target frame rate This value can be computed as 1 / N, where N is the number of frames needed to reach 64% of the target scale factor. Higher values make the dynamic resolution react faster.
    See Also:
    View.DynamicResolutionOptions, Renderer.DisplayInfo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      float headRoomRatio
      Additional headroom for the GPU as a ratio of the targetFrameTime.
      int history
      History size.
      float interval
      Desired frame interval in unit of 1 / DisplayInfo.refreshRate.
      float scaleRate
      Rate at which the scale will change to reach the target frame rate.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • interval

        public float interval
        Desired frame interval in unit of 1 / DisplayInfo.refreshRate.
      • headRoomRatio

        public float headRoomRatio
        Additional headroom for the GPU as a ratio of the targetFrameTime.
      • scaleRate

        public float scaleRate
        Rate at which the scale will change to reach the target frame rate.
      • history

        public int history
        History size. higher values, tend to filter more (clamped to 31).
    • Constructor Detail

      • FrameRateOptions

        public FrameRateOptions()