seanchas116 / SimpleDALPlugin

Simple CoreMediaIO DAL virtual camera plugin example written in Swift
MIT License
150 stars 19 forks source link

Rectangle moves slowly on Apple Silicon / ARM #14

Open jlstrecker opened 3 years ago

jlstrecker commented 3 years ago

mach_absolute_time(), used to calculate the rectangle's position in Stream.createPixelBuffer, behaves differently on ARM than Intel. Apple recommends replacing it with clock_gettime_nsec_np(CLOCK_UPTIME_RAW).

ludagoo commented 3 years ago

Oh man! This just got me! clock_gettime_nsec_np(CLOCK_UPTIME_RAW) should work fine on Intel right?