mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-01 18:30:48 -07:00
Added a simple PtcFormatter library for deserialization/serialization, which does not require reflection, in use at PtcJumpTable and PtcProfiler; improves maintainability and simplicity/readability of affected code.
This commit is contained in:
@ -549,7 +549,7 @@ namespace ARMeilleure.Translation.PTC
|
||||
SkipReloc(infoEntry.RelocEntriesCount);
|
||||
SkipUnwindInfo(unwindInfosReader);
|
||||
}
|
||||
else if (infoEntry.HighCq || !PtcProfiler.ProfiledFuncs.TryGetValue(infoEntry.Address, out var value) || !value.highCq)
|
||||
else if (infoEntry.HighCq || !PtcProfiler.ProfiledFuncs.TryGetValue(infoEntry.Address, out var value) || !value.HighCq)
|
||||
{
|
||||
Span<byte> code = ReadCode(codesReader, infoEntry.CodeLen);
|
||||
|
||||
@ -808,7 +808,7 @@ namespace ARMeilleure.Translation.PTC
|
||||
Translator.DisposePools();
|
||||
}
|
||||
|
||||
int maxDegreeOfParallelism = Environment.ProcessorCount;
|
||||
int maxDegreeOfParallelism = (Environment.ProcessorCount * 3) / 4;
|
||||
|
||||
List<Thread> threads = new List<Thread>();
|
||||
|
||||
|
Reference in New Issue
Block a user