Skip to content

v1.0.1

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 03:45
· 5 commits to development since this release

Performance

  • Adaptive downsampling: with BlurQuality.BALANCED (the default) and LOW, large radii are now blurred at a lower resolution, keeping the blur radius in the buffer at 8 px or less (5 px for LOW). 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. HIGH and ULTRA keep downsample exactly. On the Android 10 emulator (GLES path), a BlurView update 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, :blur and :record show up in Perfetto and the Android Studio profiler. They cost nothing when tracing is off.

Fixed

  • BlurSurfaceRenderer.skippedCapture was also true while 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.publish 0.29.0 → 0.34.0. Central Portal deployments are now named io.github.mrsluffy-<version> instead of a random ID. The publishing properties use the plugin's current names: mavenCentralPublishing, mavenCentralAutomaticPublishing and signAllPublications. 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 Compose

blur-showcase-v1.0.1.apk is the demo app (a debug build; Android 10+).