You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a small game using elm-graphics and animated gifs for sprites, it works great on Chrome; however on Safari the animated gifs only show the first frame if AnimationFrame.diffs is subscribed to. Note that animated gifs work fine AnimationFrame.diffs is not subscribed to.
To reproduce, you can view https://avh4.github.io/elm-mario/ (a port of the original Elm Mario demo to 0.18) on Chrome and Safari on Mac. On Chrome the Mario sprite is animated when walking left or right; on Safari it is not. I can reproduce this problem on Safari 11 on High Sierra and on iOS, using Elm 0.18 and elm-graphics 1.0.1.
I suspect for some reason the vdom is recreating the images every frame so the animated gifs are getting redrawn.
The text was updated successfully, but these errors were encountered:
I have written a small game using elm-graphics and animated gifs for sprites, it works great on Chrome; however on Safari the animated gifs only show the first frame if
AnimationFrame.diffs
is subscribed to. Note that animated gifs work fineAnimationFrame.diffs
is not subscribed to.To reproduce, you can view https://avh4.github.io/elm-mario/ (a port of the original Elm Mario demo to 0.18) on Chrome and Safari on Mac. On Chrome the Mario sprite is animated when walking left or right; on Safari it is not. I can reproduce this problem on Safari 11 on High Sierra and on iOS, using Elm 0.18 and elm-graphics 1.0.1.
I suspect for some reason the vdom is recreating the images every frame so the animated gifs are getting redrawn.
The text was updated successfully, but these errors were encountered: