Skip to content

Commit

Permalink
Fix color video performance on macOS 10.15+
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Jan 17, 2024
1 parent 9990725 commit c74305b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions OSBindings/Mac/Clock Signal/Views/CSScanTargetView.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,7 @@ - (void)updateBacking {
}

- (void)awakeFromNib {
// Use the preferred device if available.
if(@available(macOS 10.15, *)) {
self.device = self.preferredDevice;
} else {
self.device = MTLCreateSystemDefaultDevice();
}
self.device = MTLCreateSystemDefaultDevice();

// Configure for explicit drawing.
self.paused = YES;
Expand Down

0 comments on commit c74305b

Please sign in to comment.