Fixed major performence issues in the Cocoa port that affected some Macs, especially when emulating SGB1

This commit is contained in:
Lior Halphon 2019-07-19 23:59:25 +03:00
parent 8c1f76a594
commit d2e9025be6

View File

@ -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];
});
}