demostenes Posted August 3, 2017 Posted August 3, 2017 I ve made new topic, because it does not have anything to do with addmesh surface function mentioned here: Engine always lags, when adding node into scene (using functions engine.world.load.node or node_load, lag in both cases seems similar) What do we understand under lag? Freeze of engine without no response at all (not duration of task). What we find so far: 1) Size of lag depends on size of material library linked to node. Which means, if i have library wirh 700 materials, it makes 1-2 second lag, even if node uses 1 material from it and scene is empty. Adding such node for second time lowers lag little bit, but not much. Workaround is to use material libraries to cca 20 materials max, it does not eliminate lag, but it is almost not noticable. Also size of loaded textures or mesh has minimal impact on lag duration. 30KB mesh with 500Kb textures causes similar lag to 400KB mesh with 40MB of textures. 2) It also depends on complexity of scene. In empty scene is lag much much smaller, than in complex scene with lots of nodes, clutters etc... Adding node even with small mat library into complex scene can cause lag around 1 second 3) Shader cache have absolutelly no effect on it. GPU memory or speed has no effect on it. I ve asked my developers to prepare some minimalistic scene.
demostenes Posted August 6, 2017 Author Posted August 6, 2017 Update: It does not depende on size of material library, but on the number of materials in the scene, se this post:
vvvaseckiy Posted May 7, 2018 Posted May 7, 2018 Hello demostenes, After migrating your test scene to 2.7, lag decrased to ~0.02ms. Could you please check if the poblem remains in more complex scenes? If it so, could you please provide actual test scene, in which we can reproduce this problem. Thank you for your feedback
Recommended Posts