Repository navigation
Architecture and 120FPS
github-actions[bot] edited this page Nov 13, 2026
·
1 revision
flowchart TD
UI["LauncherScreen (120Hz Compose UI)"]
PTR["PointerEventPass.Initial Gesture Router"]
DND["LauncherDragDropController (120 FPS Ghost Layer)"]
VM["LauncherViewModel (Single Immutable StateFlow)"]
APPS["InstalledAppsRepository (LRU Icon Cache + Package Callbacks)"]
LAYOUT["HomeLayoutRepository (Jetpack DataStore JSON)"]
SYS["DeviceSystemController (Dispatchers.IO Hardware Bridge)"]
PTR --> VM
DND --> VM
UI --> PTR
UI --> DND
VM --> UI
APPS --> VM
LAYOUT --> VM
UI -. "Async IO" .-> SYS
-
PointerEventPass.InitialTop Pull-Down Routing (LauncherScreen.kt):- Downward swipes starting in the top status bar strip (
0..62dp) or upper Home Screen (0..44%) are intercepted onPointerEventPass.InitialbeforeHorizontalPageror icon click handlers can compete with diagonal thumb trajectories. -
awaitFirstDownis strictly the first suspension point in everyawaitEachGestureloop, guaranteeing zero CPU usage when idle or while overlays are open.
- Downward swipes starting in the top status bar strip (
-
GPU-Only Micro-Motions (
Modifier.graphicsLayer):- Background depth recession (
scale = 0.945f,alpha = 0.62f),HorizontalPagerinterpolation, floating drag ghost translation, and phase-staggered Edit Mode jiggle all execute purely on the RenderThread viagraphicsLayer, avoiding Compose measure/layout passes.
- Background depth recession (
-
Zero Main-Thread Binder IPC:
- App enumeration (
LauncherApps), adaptive squircle icon rasterization (LruCache), and hardware telemetry (BatteryManager,AudioManager,ConnectivityManager,Settings.System) run off the Main UI Thread (Dispatchers.IO/Dispatchers.Default).
- App enumeration (
-
Native High Refresh Rate (
HighRefreshRateHelper.kt):- Queries
Display.supportedModesfor the highest refresh rate matching the native resolution (90Hz/120Hz/144Hz) and locksWindowManager.LayoutParams.preferredDisplayModeId.
- Queries
HNMUI by HNMLabs · Latest APK (v0.3.4.2-alpha) · Security Policy · MIT License