mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 15:43:47 +01:00
A page's first frames are its heaviest, and a ticker counts the time they took: the frame after them showed the page most of the way in. On the emulator under load a push that should read 310, 242, 188, 150 px from rest on consecutive frames read 310, 120, 62. Routes now run on SteadyStartTicks, which counts a late frame near the start of a run (more than 2.5 frames at once, within the first 150 ms shown) as one frame. The transition starts late and plays its whole length, as a native animator does by moving its start time. SteadyPageRoute is the material page route with it. Every place the app pushes a page uses it, and NowPlayingRoute mixes SteadyStartRoute in. Restarting the controller instead would cancel the push's ticker future, which makes the navigator drop a replaced route early. Tests that push a page and then pump one long step now see a late frame, so they pump frames of 16 ms instead.