mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-03-03 16:45:00 +01:00
misc: chore: slightly improve PTC init log line
This commit is contained in:
parent
2acc43e968
commit
707c9ef748
@ -4,6 +4,7 @@ using ARMeilleure.CodeGen.Unwinding;
|
|||||||
using ARMeilleure.Common;
|
using ARMeilleure.Common;
|
||||||
using ARMeilleure.Memory;
|
using ARMeilleure.Memory;
|
||||||
using ARMeilleure.State;
|
using ARMeilleure.State;
|
||||||
|
using Humanizer;
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common;
|
||||||
using Ryujinx.Common.Configuration;
|
using Ryujinx.Common.Configuration;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
@ -923,15 +924,11 @@ namespace ARMeilleure.Translation.PTC
|
|||||||
sw.Stop();
|
sw.Stop();
|
||||||
|
|
||||||
PtcStateChanged?.Invoke(PtcLoadingState.Loaded, _translateCount, _translateTotalCount);
|
PtcStateChanged?.Invoke(PtcLoadingState.Loaded, _translateCount, _translateTotalCount);
|
||||||
|
|
||||||
if (_translateCount == _translateTotalCount)
|
Logger.Info?.Print(LogClass.Ptc,
|
||||||
{
|
$"{_translateCount} of {_translateTotalCount} functions translated in {sw.Elapsed.TotalSeconds} seconds " +
|
||||||
Logger.Info?.Print(LogClass.Ptc, $"{_translateCount} of {_translateTotalCount} functions translated | Thread count: {degreeOfParallelism} in {sw.Elapsed.TotalSeconds} s");
|
$"| {"function".ToQuantity(_translateTotalCount - _translateCount)} blacklisted " +
|
||||||
}
|
$"| Thread count: {degreeOfParallelism}");
|
||||||
else
|
|
||||||
{
|
|
||||||
Logger.Info?.Print(LogClass.Ptc, $"{_translateCount} of {_translateTotalCount} functions translated | {_translateTotalCount - _translateCount} function{(_translateTotalCount - _translateCount != 1 ? "s" : "")} blacklisted | Thread count: {degreeOfParallelism} in {sw.Elapsed.TotalSeconds} s");
|
|
||||||
}
|
|
||||||
|
|
||||||
Thread preSaveThread = new(PreSave)
|
Thread preSaveThread = new(PreSave)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user