Our webscene is quite complex, with dynamically loaded .obj and .mtl files. When comparing the scene without any objects to one with multiple objects, we noticed a strange issue:
In Firefox's memory heap, most of the memory (>100MB for 5 objects) is being used for JSStrings. The remaining memory is taken up by Objects, which makes sense when dealing with complex object files.
But why are there so many Strings taking up high amounts of memory, and can we reduce this? Is AFrame converting the content of .obj files into strings?
We have considered minimizing the .obj files themselves and reducing vertices. If anyone has experienced similar issues or has suggestions on how to solve this problem, we would greatly appreciate it.
Thank you in advance :-)