Small tweak -- Compile before adding to the cache, to avoid lags

This commit is contained in:
gdkchan 2019-02-27 10:58:50 -03:00
commit aa1eebcf6d

View file

@ -164,10 +164,10 @@ namespace ChocolArm64.Translation
ilOpCount += ilBlock.Count; ilOpCount += ilBlock.Count;
} }
_cache.AddOrUpdate(position, subroutine, ilOpCount);
ForceAheadOfTimeCompilation(subroutine); ForceAheadOfTimeCompilation(subroutine);
_cache.AddOrUpdate(position, subroutine, ilOpCount);
return subroutine; return subroutine;
} }