Skip to content

Commit

Permalink
Revert async LUT init until NotAdam/Lumina#85 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Jun 22, 2024
1 parent a70ef70 commit 913623c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Craftimizer/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
using Craftimizer.Simulator.Actions;
using Craftimizer.Utils;
using Craftimizer.Windows;
using Dalamud.Game.Command;
using Dalamud.Interface.ImGuiNotification;
using Dalamud.Interface.Internal;
using Dalamud.Interface.Windowing;
using Dalamud.IoC;
using Dalamud.Plugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;

Expand Down Expand Up @@ -68,10 +66,9 @@ public Plugin([RequiredVersion("1.0")] DalamudPluginInterface pluginInterface)
ListWindow = new();

// Trigger static constructors so a huge hitch doesn't occur on first RecipeNote frame.
_ = Task.Run(FoodStatus.Initialize);
_ = Task.Run(ActionUtils.Initialize);
Gearsets.Initialize();
FoodStatus.Initialize();
ActionUtils.Initialize();
Gearsets.Initialize();

Service.PluginInterface.UiBuilder.Draw += WindowSystem.Draw;
Service.PluginInterface.UiBuilder.OpenConfigUi += OpenSettingsWindow;
Expand Down

1 comment on commit 913623c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 913623c Previous: 7ad073a Ratio
Craftimizer.Benchmark.Bench.Solve(State: 58FA855E, Config: 0C077790) 122120841.33333333 ns (± 596427.2463579235)
Craftimizer.Benchmark.Bench.Solve(State: B07707CF, Config: 0C077790) 91759162.22222224 ns (± 803266.1346984841)

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.