Closed JanKoehnlein closed 7 years ago
Currently, we collect all commands for an animation frame in the action dispatcher to avoid multiple VDOM patches in a single frame.
In would make more sense to collect them in the viewer to perform only one update in a frame.
Make sure the new mechanism can be mocked / bypassed for tests which don't have window.requestAnimationFrame().
window.requestAnimationFrame()
Fixed by intoducing an ViewerCache and centralizing animation frame requests in the AnimationFrameSyncer.
AnimationFrameSyncer
Currently, we collect all commands for an animation frame in the action dispatcher to avoid multiple VDOM patches in a single frame.
In would make more sense to collect them in the viewer to perform only one update in a frame.
Make sure the new mechanism can be mocked / bypassed for tests which don't have
window.requestAnimationFrame()
.