Repository navigation
·
5 commits
to development
since this release
Performance
- Adaptive downsampling: with
BlurQuality.BALANCED(the default) andLOW, large radii are now blurred at a lower resolution, keeping the blur radius in the buffer at 8 px or less (5 px forLOW). The result looks the same, because a blur that strong has no fine detail, but every per-frame cost scales with the buffer: capture, upload, GPU blur and the GLES readback.HIGHandULTRAkeepdownsampleexactly. On the Android 10 emulator (GLES path), aBlurViewupdate went from 3.5 ms to 1.8–2.0 ms. - Unchanged content is not blurred again: the capture is double-buffered and compared with the previous one. When the window redraws for something unrelated (a spinner, a cursor, the surface's own children), the blur, texture upload and readback are skipped. That frame costs 0.04 ms instead of 2.7 ms. New:
ViewCapture.lastCaptureChanged. - Trace sections:
BlurEngine:update,:capture,:blurand:recordshow up in Perfetto and the Android Studio profiler. They cost nothing when tracing is off.
Fixed
BlurSurfaceRenderer.skippedCapturewas alsotruewhile a backend was still warming up. It now means only what it says: capture was skipped because the blur was a no-op.- Device tests on CI emulators (software GL):
- tests now wait until the blur is drawn by its final renderer instead of a fixed delay;
- they pin the animation scale to 1 while they run;
- they take screenshots only once the screen has stopped changing.
Changed
- Build: publishing plugin
com.vanniktech.maven.publish0.29.0 → 0.34.0. Central Portal deployments are now namedio.github.mrsluffy-<version>instead of a random ID. The publishing properties use the plugin's current names:mavenCentralPublishing,mavenCentralAutomaticPublishingandsignAllPublications. The published artifacts are unchanged. - Releases: only the repository owner can start the publish workflow.
Install
implementation("io.github.mrsluffy:blur-view:1.0.1") // Android Views
implementation("io.github.mrsluffy:blur-compose:1.0.1") // Jetpack Composeblur-showcase-v1.0.1.apk is the demo app (a debug build; Android 10+).