creativescala / doodle

Compositional vector graphics in Scala / Scala.JS
https://creativescala.org/doodle/
Apache License 2.0
327 stars 75 forks source link

Switch to using fixedRate() instead of fixedDelay() for Reactor #170

Closed lego-eden closed 1 month ago

lego-eden commented 1 month ago

In BaseReactor I noticed that the method used to generate the Stream[IO, Command] of states is Stream.fixedDelay[IO]. Switching to using Stream.fixedRate[IO] might result in smoother motion with less microstutters. At least I expected the frames to be generated at a fixed rate and not with a fixed delay. image

noelwelsh commented 1 month ago

Thanks!