Adding Stylus support to your Android app
summary
Android shows how to cut stylus lag by half or more using the Low-Latency Jetpack Library that combines front- and multi-buffered rendering, targeted at the 270 million large-screen Android devices. Implementation uses GLFrontBufferedRenderer callbacks — onDrawFrontBufferedLayer for incremental strokes and onDrawDoubleBufferedLayer to re-render on commit — plus calling renderFrontBufferedLayer during moves and commit on lift. It warns to use this only for stylus ink, not full UI.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:16android dev summit
- 0:55Latency Sources
- 1:08Multi-Buffered Rendering
- 1:26Front-Buffered Rendering
- 1:50Low-Latency Jetpack Library
- 3:59Best Practices
related talks
05mAdding Stylus support to your Android app
21mSupporting stylus input on Android using Jetpack Ink
16mAndroid Graphics
36mDrawn out: How Android renders
40mAndroid Graphics Performance
53mGraphics Something Android Something Performance
45mHigh performance in Android
42mAndroid Graphics: the Path to [UI] Riches
