fix(core): ceil timeline payload duration to match render frames

This commit is contained in:
func25
2026-05-20 06:04:29 +07:00
parent efc5f0584b
commit 0fc3937809
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -674,7 +674,7 @@ export function collectRuntimeTimelinePayload(params: {
const shouldEmitNonDeterministicInf = timelineLooksLoopInflated && attrDurationCandidate == null;
const durationInFrames = shouldEmitNonDeterministicInf
? Number.POSITIVE_INFINITY
: Math.max(1, Math.round(safeDuration * Math.max(1, params.canonicalFps)));
: Math.max(1, Math.ceil(safeDuration * Math.max(1, params.canonicalFps)));
return {
source: "hf-preview",
type: "timeline",