Package com.google.android.filament
Class Renderer.FrameRateOptions
- java.lang.Object
-
- com.google.android.filament.Renderer.FrameRateOptions
-
- Enclosing class:
- Renderer
public static class Renderer.FrameRateOptions extends java.lang.ObjectUse 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.
-
-
Field Summary
Fields Modifier and Type Field Description floatheadRoomRatioAdditional headroom for the GPU as a ratio of the targetFrameTime.inthistoryHistory size.floatintervalDesired frame interval in unit of 1 / DisplayInfo.refreshRate.floatscaleRateRate at which the scale will change to reach the target frame rate.
-
Constructor Summary
Constructors Constructor Description FrameRateOptions()
-
-
-
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).
-
-