Skip to content

Release v2.3.1: GPU Compute Encoder P0/P1/Medium Optimizations & Accuracy Fixes - #6

Merged
Overflowu merged 9 commits into
masterfrom
develop
Dec 1, 2026
Merged

Overflowu merged 9 commits into
masterfrom
develop

Conversation

@Overflowu

Copy link
Copy Markdown
Owner

Summary

Release v2.3.1 of com.aperture.astcenc (Runtime ASTC Encoder for Unity).

Highlights

  • GPU Compute Encoder P0/P1/Medium Performance Optimizations:
    • Single-pass compact uint RGBA8 LDR pixel cache & LocalKeyword ASTC_HDR_VARIANT split (d755a14).
    • O(1) division-free AstcLinearToCode, 56-entry O(1) kAstcWeightLut, direct MSB-descending power-of-2 weight packing, exact-grid 6x6 Fast mode (0x108), and bounded ComputeBuffer pooling (78e9014, 924bc21).
    • Dedicated Medium (ASTC_NO_2P) kernels stripping 2-Partition code/registers at compile time, pruned Stage 0/1 candidates, 1-pass endpoint refinement, and conservative LDR Medium early-out (8b96905, 924bc21).
  • Accuracy & Robustness Fixes:
    • Exact nearest-neighbor power-of-2 weight quantization (AstcQuantizePow2Weight) and hardware-exact integer Gather weight decimation (AstcGatherSpan / AstcGatherTap with branchless component selection for GLES 3.1 compatibility) (924bc21, f1a9e0e).
    • Bounded 8 MiB per-buffer / 16 MiB total ComputeBuffer pool with generation-guarded ReleaseCache() and full LDR+HDR kernel preloading (924bc21, f1a9e0e).
    • Added GPU math probe tests (AstcGpuMathProbe.compute) & buffer pool unit tests (924bc21, 3ae2046, 44492de).
  • Release & Benchmarks:
    • Bumped UPM package version to 2.3.1, updated CHANGELOG.md, README.md, README_CN.md, docs/Benchmarks.md, and docs/benchmarks/baseline.json (4548a99, 193f452).

Verification

  • Verify Shaders and Unity Metadata: ✅ Passed (#46594783470)
  • Performance Benchmarks (Apple Silicon Metal GPU + Win/Mac/Linux Native CPU): ✅ Passed (#46594790776)
  • Unity Multi-Platform Build & E2E Tests: ✅ EditMode Tests, 5-platform builds (Win/Mac/iOS/Android/Linux), and Win/Mac/Linux/iOS E2E passed (#46596358810)

@Overflowu
Overflowu merged commit 6a82449 into master Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant