mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-09 23:32:10 -04:00
Replace layer+MultiEffect mask with GPU-native clipping for rounded corners. The previous approach created offscreen textures for every clickable element with rounded corners (used in 34+ files across the UI), adding 100-300MB VRAM on NVIDIA GPUs. The new approach uses clip: true on a Rectangle with the corner radius, which is handled natively by the GPU without creating intermediate textures. Visual impact: Minimal - the ripple effect works identically. The only theoretical difference is slightly less smooth edges on rounded corners during the ripple animation, which is not noticeable at 10% opacity during the quick animation. VRAM improvement: Tested on NVIDIA, ~100-300MB reduction.
3.4 KiB
3.4 KiB