small fix

This commit is contained in:
Levent Duivel 2024-11-08 01:30:55 +05:00
parent fd0d659772
commit 07296e74cb
2 changed files with 2 additions and 3 deletions

View File

@ -67,8 +67,7 @@
[self stopFrameLoop];
_updatingFrames = YES;
dispatch_async(dispatch_get_main_queue(), ^(void){
// TODO: can we make VSync happen here?
_updateFrameTimer = [NSTimer scheduledTimerWithTimeInterval:1/500 target:self selector:@selector(_updateFrame) userInfo:nil repeats:YES];
_updateFrameTimer = [NSTimer scheduledTimerWithTimeInterval:1/400 target:self selector:@selector(_updateFrame) userInfo:nil repeats:YES];
});
}

View File

@ -114,7 +114,7 @@
_staticBuffer = IOSurfaceCreate((CFDictionaryRef) [NSDictionary dictionaryWithObjectsAndKeys:
@"PurpleEDRAM", kIOSurfaceMemoryRegion,
[NSNumber numberWithBool:YES], kIOSurfaceIsGlobal,
// [NSNumber numberWithBool:YES], kIOSurfaceIsGlobal,
[NSNumber numberWithInt:bytesPerPixel*_width], kIOSurfaceBytesPerRow,
[NSNumber numberWithInt:bytesPerPixel], kIOSurfaceBytesPerElement,
[NSNumber numberWithInt:_width], kIOSurfaceWidth,