some housekeeping

This commit is contained in:
Greg Wells
2025-07-12 15:00:19 -04:00
parent 8445c0553b
commit e43b731f39
9 changed files with 12 additions and 17 deletions

View File

@@ -27,6 +27,7 @@ CAMetalLayer* gnCreateCAMetalLayer(NSWindow* window) {
[layer setFramebufferOnly:YES];
[view setLayer:layer];
[view setWantsLayer:YES];
// [layer setDisplaySyncEnabled:NO];
CGSize viewSize = view.bounds.size;
CGFloat scale = window.screen.backingScaleFactor;
layer.pixelFormat = MTLPixelFormatBGRA8Unorm;