1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-07 23:25:00 +00:00

Merge pull request #1308 from ryandesign/no-preferredDevice

Fix color video performance on macOS 10.15+
This commit is contained in:
Thomas Harte
2024-01-17 09:23:49 -05:00
committed by GitHub

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;