Skip to content

Commit 5aaec8a

Browse files
committed
mac/vulkan: log display sync active state of metal layer
since we have a mapping layer between vulkan and metal (MoltenVK) we don't actually know when display sync is activated log display sync active state.
1 parent 6b6111f commit 5aaec8a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

video/out/mac/metal_layer.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ class MetalLayer: CAMetalLayer {
6868
}
6969
}
7070

71+
override var displaySyncEnabled: Bool {
72+
didSet {
73+
if displaySyncEnabled != oldValue {
74+
log.verbose("Metal layer display sync \(displaySyncEnabled ? "active" : "inactive")")
75+
}
76+
}
77+
}
78+
7179
init(common com: MacCommon) {
7280
common = com
7381
super.init()

0 commit comments

Comments
 (0)