SimpleDALPlugin
SimpleDALPlugin copied to clipboard
Rectangle moves slowly on Apple Silicon / ARM
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)
.
Oh man! This just got me! clock_gettime_nsec_np(CLOCK_UPTIME_RAW)
should work fine on Intel right?