Microsoft improves inking latency by up to 240% in Edge Dev

Microsoft Edge Update Dev New2Source: Daniel Rubino / Windows Central

Microsoft has an enhanced inking experience in testing on Edge Dev. Microsoft explains that the improvements it’s implemented result in up to a 240% improvement in latency for inking. To try out the new experience, your PC needs to be on the latest Windows 11 Insider preview buid. You also have to have the latest build of Microsoft Edge Dev.

The improvement is a result of Microsoft introducing a top level Ink API that developers can incorporate into web apps. Microsoft shares how to get the API to work with web apps in more depth in its blog post.

VPN Deals: Lifetime license for $16, monthly plans at $1 & more

For users of the Edge browser, the end result is a smoother and quicker inking experience, as shown below. The green segment of the line illustrates the improvement in inking latency.

Microsoft explains the technical details behind the improvement:

In Chromium-based browsers today, pen events are first sent to the browser process, which in turn forwards these events to a web application’s JavaScript event loop. The time delay between when the browser process receives these events and when they reach the application can sometimes be significant, depending on the rest of the main thread, resulting in the latency seen when inking.

To improve this, behind the scenes of the InkPresenter implementation on Windows 11, Microsoft Edge is using a new Windows API that will work directly with the operating system’s compositor to draw additional ink strokes outside of Microsoft Edge’s application loop. Thanks to this API, instead of waiting to deliver the event to the web application via JavaScript, we can take these points and provide them to the operating system compositor as soon as we receive them. The compositor can then connect the points with ink strokes and draw these strokes in the next frame that is to be presented to the screen, dramatically reducing latency.

Microsoft’s efforts have been contributed to the Chromium project, so they should also benefit browsers other than Edge.

Smooth inking


Microsoft Edge Logo

Microsoft Edge

Speeding up inking on the web

Microsoft’s efforts resulted in up to a 240% improvement for inking latency. The improvements are in testing now but should make their way to Edge and other Chromium browsers in the future.

We may earn a commission for purchases using our links. Learn more.

Leave a Reply

Discover more from Ultimatepocket

Subscribe now to keep reading and get access to the full archive.

Continue reading