Ditching Swing’s timer in favor of a custom timer class that delivers a stabler, smoother frame rate.
Adds a second variant of canvas.animate() that accepts a callback with a dt parameter, so that animations can compensate for actual frame rate to create smoother apparent motion. (This was really noticeable with Critters on a large screen!)
Ditching Swing’s timer in favor of a custom timer class that delivers a stabler, smoother frame rate.
Adds a second variant of
canvas.animate()
that accepts a callback with adt
parameter, so that animations can compensate for actual frame rate to create smoother apparent motion. (This was really noticeable with Critters on a large screen!)