Efficiency Improvements

Moved resampling to a Worker and reduced re-renders with
requestAnimationFrame.