optimization with how often new quad trees are created to increase performance