News for hackers. Stuff that matters.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by humbledrone on Monday May 05, 2025 @11:40PM (#43901620)
Some folks may have seen my Show HN post for Anukari here: https://news.ycombinator.com/item?id=43873074

In that thread, the topic of macOS performance came up there. Basically Anukari works great for most people on Apple silicon, including base-model M1 hardware. I've done all my testing on a base M1 and it works wonderfully. The hardware is incredible.

But to make it work, I had to implement an unholy abomination of a workaround to get macOS to increase the GPU clock rate for the audio processing to be fast enough. The normal heuristics that macOS uses for the GPU performance state don't understand the weird Anukari workload.

Anyway, I finally had time to write down the full situation, in terrible detail, so that I could ask for help getting in touch with the right person at Apple, probably someone who works on the Metal API.

Help! :)

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by aplummer on Tuesday May 06, 2025 @03:51AM (#43902688)
Have you filed a feedback? Seems like the right next step.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by bayindirh on Tuesday May 06, 2025 @03:52AM (#43902694)
The post opens with the following TL;DR:, snipped for brevity:

> It would be great if someone can connect me with the right person inside Apple, or direct them to my feedback request FB17475838 as well as this devlog entry.

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by sgerenser on Tuesday May 06, 2025 @07:42AM (#43903989)
Feedbacks often go into a black hole unless either: 1. A bunch of people file effectively the same bug report (unlikely here) 2. An individual Apple employee champions the issue internally 3. Someone makes a fuss on Twitter/X and it starts to go viral

Sounds like the OP is trying to get #2 to happen, which is probably his best bet.

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by badc0ffee on Tuesday May 06, 2025 @03:17PM (#43908647)
Another trick is to schedule some Apple engineer time during WWDC, and plead your case.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by musicale on Wednesday May 07, 2025 @09:12PM (#43922115)
I was going to recommend this. They may have some suggestions of how to improve things with existing metal as well.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by viraptor on Tuesday May 06, 2025 @08:16AM (#43904217)
Feedback is as effective as creating a change.org petition to some politician to stop doing crimes please. You'll be lucky to get an acknowledgement that something's a real issue after months.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by TheAceOfHearts on Tuesday May 06, 2025 @03:56AM (#43902707)
I missed the Show HN, but the first thing that came to mind after seeing it was that this looks like it would lend itself well to making some very creative ASMR soundscapes with immersive multidimensional audio. I selfishly hope you or one of your users will make a demo. Congrats on the project and I hope you receive help on your Apple issues.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by bambax on Tuesday May 06, 2025 @04:46AM (#43902940)
> This is going to be a VERY LONG HIGHLY TECHNICAL post, so either buckle your seatbelt or leave while you still can.

Well, I read it all and found it not too long, extremely clear and well-written, and informative! Congrats on the writing.

I've never owned a Mac and my pc is old and without a serious GPU, so it's unlikely that I'll get to use Anukari soon, but I regret it very much, as it looks sooo incredibly cool.

Hope this gets resolved fast!

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by Dlemo on Tuesday May 06, 2025 @06:50AM (#43903646)
Your topic is neither long nor very technical btw.

CPU/GPU clocking is neither complicated or new.

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by mensetmanusman on Tuesday May 06, 2025 @07:38AM (#43903957)
It’s technical to over half of programmers who don’t need to know these types of details about hw/sw interactions.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by Dlemo on Tuesday May 06, 2025 @03:50PM (#43908938)
It's about 'very technical'. If you can explain the problem in one basic sentence it's not very
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by my123 on Tuesday May 06, 2025 @09:15AM (#43904731)
Did you try this entitlement? https://developer.apple.com/documentation/bundleresources/en...

wonder if com.apple.developer.sustained-execution also goes the other way around...

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by humbledrone on Tuesday May 06, 2025 @02:55PM (#43908456)
Thanks for the thought, unfortunately when running as a plugin Anukari is subject to whatever plist.txt the host application uses. I think that I did try that with the standalone binary at one point, but unfortunately I did not appear to take notes! That probably means I did not have success.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by aldrich on Tuesday May 06, 2025 @08:49PM (#43911148)
Very cool work.. and frustating running into walls imposed by manufacturers, I imagine! I've also been working on GPU-based audio plugins for a long time and have done some public material on the subject.

Just my two cents: have you considered using a server/daemon process that runs separately and therefore more controllably outside a DAW (and therefore a client-server approach for your plugin instances)? It could allow you to have a little bit more OS-based control.

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by Archit3ch on Wednesday May 07, 2025 @07:22AM (#43914306)
Do you have a link to your stuff?

> have you considered using a server/daemon process that runs separately and therefore more controllably outside a DAW

I'm slowly coming to the same conclusion, for audio plugins on GPUs.

Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by vlovich123 on Tuesday May 06, 2025 @09:57AM (#43905182)
Interesting post & problem. I wonder if the reason that the idea of running the tasks on the same queue fails is for the same reason you have a problem in the first place - variable clock rate means it’s impossible to schedule precisely and you end up aliasing your spin stop time ideal time based on how the OS decided to clock the GPU. But that suggests that maybe your spin job isn’t complex enough to run the GPU at the highest clock because if it is running at max then you should be able to reliably time the stop of the spin even without adding a software PLL (which may not be a bad idea). I didn’t see a detailed explanation of how the spin is implemented and I suspect a more thorough spin loop that consistently drives more of the GPU might be more effective at keeping the clock rate at max perf.
Re:An Appeal to Apple from Anukari: one tiny macOS detail to... by sunshowers on Tuesday May 06, 2025 @01:48PM (#43907798)
Great post, I found the description clear and easy to understand. I've definitely run into the issue you're describing in other contexts.