mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-11-29 08:27:15 +00:00
The globe picker shed detail while in motion: a frame-time governor hid city names and country borders and thinned coastlines during every drag (the first drag always started at reduced detail), then popped them back on release. Draw full detail on every frame instead, and make that cheap enough: - Give each globe canvas its own graphics layer. Without one, the always-running crosshair pulse re-recorded the whole globe every frame, even at rest. - Replace the per-point Pair/DiscPt lists and per-ring Paths with reused primitive buffers, and batch land fills, coastlines, borders, graticule and grid outlines into a few reused paths. - Cut outlines at the true limb crossing so they reach the globe's edge. - Cache the globe gradients until the globe moves or zooms. - Derive canZoomOut so the picker chrome no longer recomposes on every zoom frame.