A selector have been scheduled to the frame rate, [self schedule:@selector(tick:)]; and it keep executing all time (since application run). thus it keep increasing the memory, that leads to degradation in performance. So can we keep releasing the memory while excuting the selector.
A selector have been scheduled to the frame rate, [self schedule:@selector(tick:)]; and it keep
Share
Schedule will only call the selector at frame rate interval, no memory is taken by this operation.
If you have memory which increases, maybe it’s because you have memory leak in your code inside the tick: method.
And no autoreleasepool is required because schedule lets the autorelease pool managed by the run loop to release autoreleased objects.