set QuadTree.maxLevel dynamically