mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
chore: add some timings for Tier 2 init
This commit is contained in:
parent
8d33252cee
commit
c72581d3bb
2 changed files with 67 additions and 41 deletions
|
|
@ -9,6 +9,7 @@ using Dalamud.Interface.Internal;
|
|||
using Dalamud.IoC;
|
||||
using Dalamud.IoC.Internal;
|
||||
using Dalamud.Utility;
|
||||
using Dalamud.Utility.Timing;
|
||||
using ImGuiScene;
|
||||
using JetBrains.Annotations;
|
||||
using Lumina;
|
||||
|
|
@ -298,25 +299,32 @@ namespace Dalamud.Data
|
|||
|
||||
Log.Verbose("Loaded {0} ClientOpCodes.", clientOpCodeDict.Count);
|
||||
|
||||
var luminaOptions = new LuminaOptions
|
||||
using (Timings.Start("Lumina Init"))
|
||||
{
|
||||
CacheFileResources = true,
|
||||
var luminaOptions = new LuminaOptions
|
||||
{
|
||||
CacheFileResources = true,
|
||||
#if DEBUG
|
||||
PanicOnSheetChecksumMismatch = true,
|
||||
PanicOnSheetChecksumMismatch = true,
|
||||
#else
|
||||
PanicOnSheetChecksumMismatch = false,
|
||||
PanicOnSheetChecksumMismatch = false,
|
||||
#endif
|
||||
DefaultExcelLanguage = this.Language.ToLumina(),
|
||||
};
|
||||
DefaultExcelLanguage = this.Language.ToLumina(),
|
||||
};
|
||||
|
||||
var processModule = Process.GetCurrentProcess().MainModule;
|
||||
if (processModule != null)
|
||||
{
|
||||
this.GameData = new GameData(Path.Combine(Path.GetDirectoryName(processModule.FileName), "sqpack"), luminaOptions);
|
||||
var processModule = Process.GetCurrentProcess().MainModule;
|
||||
if (processModule != null)
|
||||
{
|
||||
this.GameData = new GameData(Path.Combine(Path.GetDirectoryName(processModule.FileName), "sqpack"), luminaOptions);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Could not main module.");
|
||||
}
|
||||
|
||||
Log.Information("Lumina is ready: {0}", this.GameData.DataPath);
|
||||
}
|
||||
|
||||
Log.Information("Lumina is ready: {0}", this.GameData.DataPath);
|
||||
|
||||
this.IsDataReady = true;
|
||||
|
||||
this.luminaCancellationTokenSource = new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue