digitransit-ui icon indicating copy to clipboard operation
digitransit-ui copied to clipboard

Realtime animation is pretty heavy

Open Eightyplus opened this issue 8 years ago • 1 comments

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? screen shot 2017-03-14 at 12 53 36

Eightyplus avatar Mar 14 '17 11:03 Eightyplus

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.

kalon33 avatar Apr 06 '17 18:04 kalon33