Closed pcantrell closed 3 years ago
Because event handlers all individually trigger a CanvasWindow.draw(), have many of them interferes with the smooth operation of animate().
CanvasWindow.draw()
animate()
We should instead batch all event and animate() callbacks, and call draw() once for all of them.
draw()
Fixed in https://github.com/mac-comp127/macalester-graphics/commit/f3e09a6ad08f80f27a1ab43aca04dd70461de42c
Because event handlers all individually trigger a
CanvasWindow.draw()
, have many of them interferes with the smooth operation ofanimate()
.We should instead batch all event and
animate()
callbacks, and calldraw()
once for all of them.