docs/android/dokka/filament-android/com.google.android.filament/-view/-dynamic-resolution-options/index.md
//filament-android/com.google.android.filament/View/DynamicResolutionOptions
open class DynamicResolutionOptions
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.
Note: Dynamic resolution is only supported on platforms where the time to render a frame can be measured accurately. On platforms where this is not supported, Dynamic Resolution can't be enabled unless minScale == maxScale.
| Renderer.FrameRateOptions |
| DynamicResolutionOptions | [main] |
| constructor() |
| Name | Summary |
|---|---|
| enabled | [main] |
| open var enabled: Boolean | |
| enable or disable dynamic resolution | |
| homogeneousScaling | [main] |
| open var homogeneousScaling: Boolean | |
| set to true to force homogeneous scaling | |
| maxScale | [main] |
| open var maxScale: Float | |
| maximum scale factors in x and y | |
| minScale | [main] |
| open var minScale: Float | |
| minimum scale factors in x and y | |
| quality | [main] |
| open var quality: View.QualityLevel | |
| Upscaling quality |