1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-16 18:30:32 +00:00

Fix color video performance on macOS 10.15+

Closes #1178
This commit is contained in:
Ryan Carsten Schmidt 2024-01-17 01:28:31 -06:00
parent 9990725cfb
commit c74305be56

View File

@ -145,12 +145,7 @@ static CVReturn DisplayLinkCallback(__unused CVDisplayLinkRef displayLink, const
}
- (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;