diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-09-19 12:16:20 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-19 12:16:20 -0300 |
| commit | 99b2692425ff4045f103cde0745624b9b41d6fe6 (patch) | |
| tree | 3d41d69a65257f5dd6000b3b85d97e10904ed29e /ChocolArm64/Translation | |
| parent | fae097408e5ef28848e97022766017e540b0da37 (diff) | |
Fix performance regression caused by the new scheduler changes (#422)
* Call interrupt less often, remove some leftovers from the old scheduler code
* Remove unneeded attribute
Diffstat (limited to 'ChocolArm64/Translation')
| -rw-r--r-- | ChocolArm64/Translation/AILEmitterCtx.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ChocolArm64/Translation/AILEmitterCtx.cs b/ChocolArm64/Translation/AILEmitterCtx.cs index 40e33ba8..48700715 100644 --- a/ChocolArm64/Translation/AILEmitterCtx.cs +++ b/ChocolArm64/Translation/AILEmitterCtx.cs @@ -123,6 +123,8 @@ namespace ChocolArm64.Translation { EmitLdarg(ATranslatedSub.StateArgIdx); + EmitLdc_I4(CurrBlock.OpCodes.Count); + EmitPrivateCall(typeof(AThreadState), nameof(AThreadState.Synchronize)); EmitLdc_I4(0); |
