Reputation: 113
i develop a game with Three.js which loads obj models from server depending on a stream from server sent event, all models are very simple and very low poly, the code runs well but with about 50 models loaded the event source makes it very very slow, i make the event source code inside a web worker which increased the performance but still not acceptable at all. what should i do to enhance the performance?
Upvotes: 0
Views: 238
Reputation: 962
I would suggest you to take a look at JSON 3D exporter project. It basically converts 3D objects into plain JSON files, it becomes really lightweight and so usefull in order to improve the time response. In order to do so, you will need Blender.
https://github.com/mrdoob/three.js/tree/master/utils/exporters/blender
Upvotes: 1