Open jlstrecker opened 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).
mach_absolute_time()
Stream.createPixelBuffer
clock_gettime_nsec_np(CLOCK_UPTIME_RAW)
Oh man! This just got me! clock_gettime_nsec_np(CLOCK_UPTIME_RAW) should work fine on Intel right?
mach_absolute_time()
, used to calculate the rectangle's position inStream.createPixelBuffer
, behaves differently on ARM than Intel. Apple recommends replacing it withclock_gettime_nsec_np(CLOCK_UPTIME_RAW)
.