devicePixelRatioOverride
devicePixelRatioOverride: number | undefined
If defined, this will be used as the device pixel ratio instead of the system's actual device pixel ratio. This can be helpful for situations like running in the iOS Simulator where forcing a lower resolution by setting a sub-1 device pixel ratio would increase performance.
@note If this setting is used to decrease the effective device pixel ratio, the view will appear pixelated.
@note This setting should only be used to increase performance in situations like the iOS Simulator for testing purposes only. It should not be used in a production situation.
@note This setting has no effect if RenderSystem.Options.dpiAwareViewports is false
.
Default value: undefined
Defined in
- core/frontend/src/render/RenderSystem.ts Line 1016
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.