don't rerender html in every animation frame