diff --git a/SpineViewerCLI/SpineViewerCLI.cs b/SpineViewerCLI/SpineViewerCLI.cs index 121d73f..9794543 100644 --- a/SpineViewerCLI/SpineViewerCLI.cs +++ b/SpineViewerCLI/SpineViewerCLI.cs @@ -181,16 +181,7 @@ options: if (warmup) { - float delta = 1f / fps; - for (int i = 0; i < warmUpLoops; i++) - { - float t = 0; - while (t < trackEntry.Animation.Duration) - { - sp.Update(delta); - t += delta; - } - } + sp.Update(trackEntry.Animation.Duration * warmUpLoops); } foreach (var slotName in hideSlots) @@ -370,4 +361,4 @@ options: return new(x, y, w, h); } } -} \ No newline at end of file +}