small fix
This commit is contained in:
parent
fd0d659772
commit
07296e74cb
|
@ -67,8 +67,7 @@
|
||||||
[self stopFrameLoop];
|
[self stopFrameLoop];
|
||||||
_updatingFrames = YES;
|
_updatingFrames = YES;
|
||||||
dispatch_async(dispatch_get_main_queue(), ^(void){
|
dispatch_async(dispatch_get_main_queue(), ^(void){
|
||||||
// TODO: can we make VSync happen here?
|
_updateFrameTimer = [NSTimer scheduledTimerWithTimeInterval:1/400 target:self selector:@selector(_updateFrame) userInfo:nil repeats:YES];
|
||||||
_updateFrameTimer = [NSTimer scheduledTimerWithTimeInterval:1/500 target:self selector:@selector(_updateFrame) userInfo:nil repeats:YES];
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
|
|
||||||
_staticBuffer = IOSurfaceCreate((CFDictionaryRef) [NSDictionary dictionaryWithObjectsAndKeys:
|
_staticBuffer = IOSurfaceCreate((CFDictionaryRef) [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
@"PurpleEDRAM", kIOSurfaceMemoryRegion,
|
@"PurpleEDRAM", kIOSurfaceMemoryRegion,
|
||||||
[NSNumber numberWithBool:YES], kIOSurfaceIsGlobal,
|
// [NSNumber numberWithBool:YES], kIOSurfaceIsGlobal,
|
||||||
[NSNumber numberWithInt:bytesPerPixel*_width], kIOSurfaceBytesPerRow,
|
[NSNumber numberWithInt:bytesPerPixel*_width], kIOSurfaceBytesPerRow,
|
||||||
[NSNumber numberWithInt:bytesPerPixel], kIOSurfaceBytesPerElement,
|
[NSNumber numberWithInt:bytesPerPixel], kIOSurfaceBytesPerElement,
|
||||||
[NSNumber numberWithInt:_width], kIOSurfaceWidth,
|
[NSNumber numberWithInt:_width], kIOSurfaceWidth,
|
||||||
|
|
Loading…
Reference in New Issue