gpvigano/AsImpL

Loading 10x slower than Runtime OBJ Importer

YelovSK opened this issue · 1 comments

Environment

Please specify:

  • version of AsImpL - 5d9086f
  • version of Unity3D (e.g. Unity 5.4.4f1) - Unity 2021.3.0f1

I'd like to know if there's a specific reason that .obj files take around 10x longer to load than with Runtime OBJ Importer (3s vs 30s). Do any ImportSettings affect the speed greatly, or rather is there anything that can speed up the loading?

The Runtime OBJ Importer is the first project from which AsImpL was inspired, but the approach is different. In particular, while Runtime OBJ Importer uses a synchronous implementation (imports all at once), AsImpL implements an interactive loading process, enabling the visualization of the loading process in the scene and/or in a UI.
Furthermore Runtime OBJ Importer includes a number of optimizations that are not present in AsImpL, this can make the difference.

About the AsImpL settings: no, there is not much you can do to speed up the loading, an option could be added to avoid frame updates during the loading process, but I think this the related gain is limited, far away from 10X (from my tests it is less than 1.5X).