Closed stevesoltys closed 3 years ago
This avoids the memory leak / high CPU usage from an indefinite number of CADisplayLink being added to NSRunLoop.currentRunLoop.
CADisplayLink
NSRunLoop.currentRunLoop
It does this by removing the CADisplayLink from the loop when the UIView is offscreen (window is null).
UIView
window
null
@stevesoltys thanks! but current version of moko-widgets depends on bintray versions...i merge it, but can't publish
This avoids the memory leak / high CPU usage from an indefinite number of
CADisplayLink
being added toNSRunLoop.currentRunLoop
.It does this by removing the
CADisplayLink
from the loop when theUIView
is offscreen (window
isnull
).