From d335645dc158fb3d4c8ca4a320baa48d76666dcb Mon Sep 17 00:00:00 2001 From: ww-rm <43590561+ww-rm@users.noreply.github.com> Date: Sun, 19 Oct 2025 20:46:42 +0800 Subject: [PATCH] remove unnecessary frame loops --- SpineViewerCLI/SpineViewerCLI.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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 +}