this is not working but just for record. attempt to reduce fps for random pizza creation. tried to use raf and onscroll listener. but bumped up fps to about 30 ave. will try something else
moved logic for drawing bgd pizzas and copy of updatePosition() to hmtl. made link to main.js async