preferSmallTextureFiles(quality:)
Reduce textures’ file size.
Declaration
static func preferSmallTextureFiles(quality: Entity.WriteOptions.TextureQuality) -> Entity.WriteOptionsDiscussion
RealityKit reduces the file size while preserving its dimensions. RealityKit can use various strategies to reduce the file size including lossy encoding the texture as an image or storing the original source image. Mipmaps can also be regenerated.
Writing smaller texture files can increase memory usage and load time. Without this option, textures can be written to a compressed pixel format, resulting in larger file sizes but smaller memory usage and load time.