featured
Hardware decode on the M-series: watching Activity Monitor while Sintel plays
Hardware decoding is easy to talk about and hard to see. Playing the Sintel trailer with powermetrics open makes it obvious.
Reading the numbers
With hardware decode on, CPU usage sits under 5 percent and the ANE and media engine rows carry the load. Force software decode and CPU jumps above 60 percent on an M1.
- Run sudo powermetrics –samplers gpu_power,ane_power.
- Toggle hardware decoding in IINA preferences.
- Compare battery drain over ten minutes.
$ cat /comments 11
Would this work with fish instead of zsh?
Small typo in the second paragraph, but otherwise perfect.
This is exactly the write-up I needed this week. Bookmarked.
Tried this on an M1 Air and got the same numbers within a few percent.
Agreed, the Intel behaviour caught me out as well.
Any chance you could share the full config in a gist? The snippet is great but I want to see the rest.
I have been doing this the hard way for years. Thank you.
Worth mentioning that this behaves differently on Intel Macs. Took me an hour to figure that out.
Great post. One small correction: the flag is case-sensitive on older versions.
Same here, it made a big difference.
Thanks! Good catch, I have updated the post.