gpvigano / AsImpL

Asynchronous Importer and run-time Loader for Unity
MIT License
212 stars 37 forks source link

Loading 10x slower than Runtime OBJ Importer #51

Open YelovSK opened 2 years ago

YelovSK commented 2 years ago

Environment

Please specify:

  • version of AsImpL - 5d9086ffd7e9e3c1a8faa79970d1a53faeff89cb
  • 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?

gpvigano commented 2 years ago

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).