I'm having issue with loading 1.2GB USDZ file with visionOS Here's the details
- the file is download via backend api
- file is download to document directory
FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
- when loading the asset, it took almost 30s to load the asset
Loaded usd((extension in RealityFoundation):RealityKit.Entity.LoadStatistics.USDLoader.rio) in 29.24642503261566 seconds
loading asset code
let model = try await Entity(contentsOf: assetUrl)
- USDZ file is exported from RealityComposerPro
Did I make any mistake on the flow or is there any other approach to decrease the loading time?