By reducing the complexity of the gltf file Try splitting it into several smaller models and load on-demand.
I have to load all of parts of this model
How many meshes? 1000 meshes with single texture is 1000 draw calls and about 9ms time.
too much of them this a machine with all of parts
If the model is very complex you can still try optimising it using LODs and toggling on/off parts that aren’t visible at all times.
Brute-forcing a very complex model on the screen will fail in three just as well as it would in Unreal Engine (UE would be a bit more forgiving ofc)
Merge objects with same material to decrease draw calls
please send me an exmple;
To see info about amount of triangles, draw calls, try this script renderer_stats.js (2.2 KB)
var stats=new Stats(); document.getElementById("project").appendChild(stats.dom); document.getElementById("project").appendChild(renderer_stats_canvas); renderer.render(scene,camera); renderer_stats_update(0);
You already have got Stats.js. Find his code and add this at bottom, but modify. Or send your code and i add.
And If you are using module, then you need to set “let renderer;” out of module like this: