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
parent 35c6b4e35d
commit aa1eebcf6d

View file

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