major refactoring of sceneEditor for perf gain phase 2