Programmable Ink Lab Notes
title
Wrapper Latency
dated
Top of 2026
author
Ivan Reese

Here are some latency tests, visualizing touches both in the wrapper and in the js app, so we can grapple with the impact of bridging between Swift and WKWebView (as opposed to going pure Swift).

3 tests — one with a finger moving at medium speed, one with the pen moving at high speed, and one with the pen wiggling. You’ll see each test a few times: twice at 1x, then 1/8x, and then with a freeze frame of additional info.

Here are the freeze frames from the video, so you don’t have to pause. I also tried to estimate the latency times.

This last freeze-frame captures a bug where an errant hover (I think) appears whenever a pen stroke ends, at the position where the pen stroke began. So, note to self, track this down.