Resolving Metal GPU timers

Published on . Filed under metal programming

Almost a year ago, with macOS 10.15, Apple finally added GPU timer queries to Metal. The documentation for it is incredibly lacklustre to this day, saying the following about [MTLCounterResultTimestamp timestamp]: A timestamp. That's pretty useless, there's no unit attached to it! I ended up writing the following tweet last December when I first implemented GPU timers for Metal: The documentation for MTLCounterResultTimestamp.timestamp says it's "A timestamp." But what unit, Apple? Read post