mac-comp127 / kilt-graphics

Graphics and UI library for learning software development principles in Java
https://mac-comp127.github.io/kilt-graphics/
2 stars 17 forks source link

Event handlers cause redraw lag #8

Closed pcantrell closed 3 years ago

pcantrell commented 4 years ago

Because event handlers all individually trigger a CanvasWindow.draw(), have many of them interferes with the smooth operation of animate().

We should instead batch all event and animate() callbacks, and call draw() once for all of them.

pcantrell commented 3 years ago

Fixed in https://github.com/mac-comp127/macalester-graphics/commit/f3e09a6ad08f80f27a1ab43aca04dd70461de42c