mirror of https://github.com/snes9xgit/snes9x.git
Revert "Mac: Wait for metal command buffer to finish before presenting drawable"
This reverts commit a2ebe3f09f
.
This commit is contained in:
parent
a2ebe3f09f
commit
2956be7559
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21225" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21225"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
|
|
|
@ -3369,31 +3369,6 @@ void QuitWithFatalError ( NSString *message)
|
|||
- (void)setCPUOverclockMode:(int)mode
|
||||
{
|
||||
Settings.OverclockMode = mode;
|
||||
|
||||
switch (mode)
|
||||
{
|
||||
default:
|
||||
case 0:
|
||||
Settings.OneClockCycle = 6;
|
||||
Settings.OneSlowClockCycle = 8;
|
||||
Settings.TwoClockCycles = 12;
|
||||
break;
|
||||
case 1:
|
||||
Settings.OneClockCycle = 6;
|
||||
Settings.OneSlowClockCycle = 6;
|
||||
Settings.TwoClockCycles = 12;
|
||||
break;
|
||||
case 2:
|
||||
Settings.OneClockCycle = 4;
|
||||
Settings.OneSlowClockCycle = 6;
|
||||
Settings.TwoClockCycles = 8;
|
||||
break;
|
||||
case 3:
|
||||
Settings.OneClockCycle = 3;
|
||||
Settings.OneSlowClockCycle = 4;
|
||||
Settings.TwoClockCycles = 6;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setApplySpecificGameHacks:(BOOL)flag
|
||||
|
|
|
@ -368,13 +368,11 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
|
|||
[renderEncoder drawPrimitives:MTLPrimitiveTypeTriangle vertexStart:0 vertexCount:6];
|
||||
|
||||
[renderEncoder endEncoding];
|
||||
|
||||
[commandBuffer commit];
|
||||
|
||||
[commandBuffer waitUntilCompleted];
|
||||
|
||||
[drawable present];
|
||||
[commandBuffer presentDrawable:drawable];
|
||||
}
|
||||
|
||||
[commandBuffer commit];
|
||||
}
|
||||
|
||||
void S9xTextMode (void)
|
||||
|
|
Loading…
Reference in New Issue