Skip to content

CADisplayLink is better #12

@marcocattai

Description

@marcocattai

if (kUseBackgroundThread) {
[NSThread detachNewThreadSelector:@selector(updateLoop) toTarget:self withObject:nil];
} else {
displayLink = [NSClassFromString(@"CADisplayLink") displayLinkWithTarget:self selector:@selector(updateTVOut)];
[displayLink setFrameInterval:1.0];
[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions