Hi!
Thank you for your work on this! I have tested the MetaLoader class and found a 3.6x speedup compared to using VRMImporterContext.
I also wanted to try the jobs based loader, but it refused to run due to the unsafe native pointer restriction introduced in Unity. After decorating the loader pointers with [NativeDisableUnsafePtrRestrictionAttribute] (documentation), there no longer was an error, but instead Unity crashed. Do you think it is possible to make the JobMetaLoader work on the current Unity version?
I added [NativeDisableUnsafePtrRestrictionAttribute] before these lines:
|
private readonly IntPtr loader; |
|
private readonly IntPtr loader; |
Hi!
Thank you for your work on this! I have tested the
MetaLoaderclass and found a 3.6x speedup compared to usingVRMImporterContext.I also wanted to try the jobs based loader, but it refused to run due to the unsafe native pointer restriction introduced in Unity. After decorating the
loaderpointers with[NativeDisableUnsafePtrRestrictionAttribute](documentation), there no longer was an error, but instead Unity crashed. Do you think it is possible to make theJobMetaLoaderwork on the current Unity version?I added
[NativeDisableUnsafePtrRestrictionAttribute]before these lines:VRMQuickMetaLoader/Assets/VRM.QuickMetaLoader/Scripts/JobMetaLoaderInternal.cs
Line 130 in 2db8c3e
VRMQuickMetaLoader/Assets/VRM.QuickMetaLoader/Scripts/JobMetaLoaderInternal.cs
Line 208 in 2db8c3e