mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
app: [Metal] don't wait for completion of presentation command
There's no need to wait; the Metal backend performs the required synchronization. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -62,7 +62,6 @@ static void presentDrawable(CFTypeRef queueRef, CFTypeRef drawableRef) {
|
|||||||
id<MTLCommandBuffer> cmdBuffer = [queue commandBuffer];
|
id<MTLCommandBuffer> cmdBuffer = [queue commandBuffer];
|
||||||
[cmdBuffer presentDrawable:drawable];
|
[cmdBuffer presentDrawable:drawable];
|
||||||
[cmdBuffer commit];
|
[cmdBuffer commit];
|
||||||
[cmdBuffer waitUntilCompleted];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user