atteneder / DracoUnity

Draco 3D Data Compression Unity Package
Apache License 2.0
245 stars 38 forks source link

Memory Leak #71

Closed camroo29 closed 11 months ago

camroo29 commented 11 months ago

Hi @atteneder,

I am trying to use DracoUnity with HoloLens. But the 3D model keeps disappearing. I believe that it is because of the FOV issue as mentioned here.

So I tried the workaround solution you posted in GitLab. However, the application keeps crashing due to memory leak issue. I would like to know if there is any update regarding these issues.

Thanks

atteneder commented 11 months ago

Hi @camroo29 ,

Could you please check if the mesh's bounds are correct? It's possible that they're not and that causes Unity to cull the object too aggressively.

I'm not sure which workaround you're referring to (it links to an outdated DracoMeshLoader.cs, but I don't know what exactly you want to refer to). Are you saying that this workaround fixed the problem? Or that it introduced the memory leak? Or do you experience memory leaks in any case?

Thanks

camroo29 commented 11 months ago

Hi @atteneder,

Thanks recalculating the bounds solved this issue.

Actually, the outdated one solved the FOV issue but caused memory leaks. The current version doesn't cause memory leaks.

Thanks