Jump to content

Editor 1 engine.editor.addNode() gets very slow in a very large world (Unigine 2.6.1.1)


photo

Recommended Posts

engine.editor.addNode() works fine in a small world but as the world gets larger this function call takes very long to complete (upto 50 seconds in some of the largest worlds)

We don't notice this issue in the newer Editor 2.

A minimal example plugin is attached into this issue. Our working environment Windows Unigine 2.6.1.1 Sim.

Is there any workaround for this issue in Editor 1?

add_node.zip

Link to comment

Hi Namal,

Unfortunately, that's unavoidable in Editor 1, since it reloads all the editor in case of adding new nodes to the world.

You can disable force reloading of editor, but you would not be able to see these nodes after adding:

Thanks! 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

How to disable force reloading the editor? Those two functions allow me to query whether the editor is going to reload or request to reload the editor. Can't see how I can stop auto reloading the editor.

Does the editor itself avoid this problem by using some other tricks? because using the "Create" menu doesn't suffer from this problem. Although undo takes a very long time.

Another observation, it looks like the time taken is proportional to the size of the data directory rather than the number or nodes in the current world. Is this correct?

Link to comment
Quote

Another observation, it looks like the time taken is proportional to the size of the data directory rather than the number or nodes in the current world. Is this correct?

Yep, because each time all the data needs to be reloaded from scratch.

 

All the creators do internally:

nodesUpdate(1);
engine.editor.needReload();

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...