mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 23:20:46 -07:00
[CPU] Speed up translation a little bit
This commit is contained in:
@ -160,11 +160,14 @@ namespace ChocolArm64
|
||||
|
||||
//Mark all methods that calls this method for ReJiting,
|
||||
//since we can now call it directly which is faster.
|
||||
foreach (ATranslatedSub TS in CachedSubs.Values)
|
||||
if (CachedSubs.TryGetValue(Position, out ATranslatedSub OldSub))
|
||||
{
|
||||
if (TS.HasCallee(Position))
|
||||
foreach (long CallerPos in OldSub.GetCallerPositions())
|
||||
{
|
||||
TS.MarkForReJit();
|
||||
if (CachedSubs.TryGetValue(Position, out ATranslatedSub CallerSub))
|
||||
{
|
||||
CallerSub.MarkForReJit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user