Fixed major performence issues in the Cocoa port that affected some Macs, especially when emulating SGB1
This commit is contained in:
parent
8c1f76a594
commit
d2e9025be6
@ -50,6 +50,7 @@ static const vector_float2 rect[] =
|
|||||||
view.delegate = self;
|
view.delegate = self;
|
||||||
self.internalView = view;
|
self.internalView = view;
|
||||||
view.paused = YES;
|
view.paused = YES;
|
||||||
|
view.enableSetNeedsDisplay = YES;
|
||||||
|
|
||||||
vertices = [device newBufferWithBytes:rect
|
vertices = [device newBufferWithBytes:rect
|
||||||
length:sizeof(rect)
|
length:sizeof(rect)
|
||||||
@ -206,7 +207,7 @@ static const vector_float2 rect[] =
|
|||||||
{
|
{
|
||||||
[super flip];
|
[super flip];
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[(MTKView *)self.internalView draw];
|
[(MTKView *)self.internalView setNeedsDisplay:YES];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user