reduced leaf updates on canvas to every 5 ajax calls or every 40 if no leaves are drawn, and always sway tree if there are no leaves