Fixed major performence issues in the Cocoa port that affected some Macs, especially when emulating SGB1
@@ -50,6 +50,7 @@ static const vector_float2 rect[] =
view.delegate = self;
self.internalView = view;
view.paused = YES;
+ view.enableSetNeedsDisplay = YES;
vertices = [device newBufferWithBytes:rect
length:sizeof(rect)
@@ -206,7 +207,7 @@ static const vector_float2 rect[] =
{
[super flip];
dispatch_async(dispatch_get_main_queue(), ^{
- [(MTKView *)self.internalView draw];
+ [(MTKView *)self.internalView setNeedsDisplay:YES];
});
}
