Adding Stylus support to your Android app
summary
Shows how the Low-Latency Jetpack Library pairs front- and multi-buffered GL layers to cut graphics latency by 50% or more on stylus input, using a SurfaceView parent and a GLFrontBufferedRenderer with callbacks onDrawFrontBufferedLayer and onDrawDoubleBufferedLayer. The app renders incremental stroke updates into the front buffer via renderFrontBufferedLayer, then calls commit to re-render the full stroke into the multi-buffered layer to hide artifacts. Targeted only at stylus workflows across ~270 million large-screen devices.
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
36mDrawn out: How Android renders
43mPixel with Superpowers: Modern Android UI with AGSL Shaders
42mAndroid Graphics: the Path to [UI] Riches
40mAndroid Graphics Performance
41mview to pixel
51mHow Android Rendering Works ...
