Repository navigation
Conversation
Add opt-in MaterialSourceMode.Static while preserving live rendering by default and the previous MaterialSource binary entry point. Share half-resolution material pixels between eligible consumers, reserve up to 16 MiB per source, retain at most one idle image, and fall back to Haze for unsupported geometry, multiple sources, inherited styles or readback errors. Separate source registration and consumer leases from cache state, offscreen capture and material drawing so invalidation and resource ownership are explicit. Keep content changes under immutable version keys: cover loading, image updates and resolved theme-dependent inputs must update the key; the cache does not enumerate theme palettes or observe arbitrary content reads. Add a navigable sample with cache, wallpaper, appearance and moving-panel controls, plus a non-debuggable Android benchmark variant and a script that exports raw frame timing, readback latency, memory and repeated comparisons. Validation: - 17 desktop material rendering tests passed, including native-window pixels, geometry boundaries, budgets, readback failures and cancellation during a source version change, and inherited-style fallback and cache reentry. - Four hardware-rendered Android tests passed on the API 36.1 emulator. - The Android sample navigation/control/recreation test passed with real input. - The benchmark script completed a Mica/Small Dynamic-versus-Static smoke run with one 1000 ms sample per mode and exported reports. Static GPU time was slightly higher in that emulator run; this is not evidence of a speedup. - Desktop sample compilation and ui2/shared iOS metadata compilation passed. iOS binaries and runtime rendering were not tested on this Windows host. - javap confirmed both old and new MaterialSource JVM signatures. - git diff --cached --check passed.
Moriafly
marked this pull request as draft
October 24, 2026 07:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add opt-in MaterialSourceMode.Static while preserving live rendering by
default and the previous MaterialSource binary entry point. Share
half-resolution material pixels between eligible consumers, reserve up to 16 MiB per source, retain at most one idle image, and fall back to Haze for unsupported geometry, multiple sources, inherited styles or readback errors.
Separate source registration and consumer leases from cache state, offscreen capture and material drawing so invalidation and resource ownership are explicit. Keep content changes under immutable version keys: cover loading, image updates and resolved theme-dependent inputs must update the key; the cache does not enumerate theme palettes or observe arbitrary content reads.
Add a navigable sample with cache, wallpaper, appearance and moving-panel controls, plus a non-debuggable Android benchmark variant and a script that exports raw frame timing, readback latency, memory and repeated comparisons.
Validation: