MacOS GPU Optimization: Wasting Resources for Speed

2024-12-15

Anukari's developer encountered a bottleneck while optimizing GPU performance on MacOS. Due to limited system control over GPU performance, Apple's GPU performance regulation mechanism performed poorly in Anukari's use case, resulting in audio glitches. The developer implemented a workaround: dedicating a GPU threadgroup warp to useless computation to 'trick' the system into increasing GPU clock speed, significantly reducing audio latency and improving performance. While crude, this method proved effective in resolving MacOS performance issues. However, performance improvements varied significantly between different DAWs (Ableton and GarageBand), requiring further optimization.

Read more