digitransit-ui
digitransit-ui copied to clipboard
Realtime animation is pretty heavy
Realtime animations are uses a lot of CPU (linjat/../pysakit/) and would easily drain the battery on a phone. I read about the subject and SVG should not be used for animations, instead this should be done drawing on a canvas. I read about a possible change, but it was a lot of work: sprite-animation or we could use a library for these animations.
So I would ask for your opinion, should we
- change animation
- use library
- disable for devices, eventually those with low battery
- other?
This is what I report in #1370 , interface is slow on mobile devices (tested using LG G4 Nexus 9 and Nexus 5X), but not on desktop. That compromises usability as this seems lagging.