One-Button Game Mini Hack Entry: GOING UP, a lift you stop by timing

My entry for the one-button game mini hack, GOING UP, makes you the lift attendant. The lift never stops on its own: one tap stops it, the next tap sends it on. Every passenger wears the colour of the floor they want.
How to play
  • Stop level with a floor and the gate opens. Riders for that floor get off (1 point each), and waiting people get on until the lift holds four.
  • Stop more than 12 px off a floor and you get a CLUNK. Nobody moves, and everyone waiting loses 1.5 s of patience.
  • Stop within 4 px while someone gets on or off: PERFECT, +1 point.
  • Waiting passengers have a patience bar. Three walk-outs and your shift is over.
  • The lift speeds up and people arrive faster as the shift goes on.
Tips for a high score
  • Skip floors with nothing to do. Every stop costs time.
  • The lift only turns around at the top and bottom. Pick up people whose floor is ahead of you; anyone else rides to the end and back.
  • Don't mash. In my bot tests random tapping lost in about 21 s, and never tapping in about 29 s.
MATLAB tricks inside
  • The lift has no direction flag. Its height is a triangle wave of the distance travelled, cy = 460 - abs(mod(ride, 840) - 420), so stopping just pauses ride.
  • Queue order without loops or sorting: ahead = sum(w' & s.pf' == s.pf & s.side' == s.side & s.pt' < s.pt, 2) counts, for every passenger at once, who arrived earlier at the same spot.
  • Timers store when something happened (s.stopAt = s.t) instead of counting up every frame. Elapsed time is just s.t - s.stopAt.
  • All 20 passengers are one patch of 6-vertex bodies plus one scatter of heads. Empty slots are NaN, so nothing is created after init.
What's your best shift?