From 2f010da30fac68e7890a34762e7f98db6b5fe29c Mon Sep 17 00:00:00 2001 From: wiiiii123 Date: Sun, 24 May 2026 19:56:18 +0700 Subject: [PATCH] fix(export): align native static route gates --- src/lib/exporter/modernVideoExporter.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/exporter/modernVideoExporter.ts b/src/lib/exporter/modernVideoExporter.ts index 1cb17bee..dc22bee0 100644 --- a/src/lib/exporter/modernVideoExporter.ts +++ b/src/lib/exporter/modernVideoExporter.ts @@ -382,13 +382,16 @@ export class ModernVideoExporter { const runtimePlatform = this.getRuntimePlatform(); let useNativeEncoder = false; let triedNativeStaticLayoutWithProbe = false; + const prefersNativeStaticLayoutBeforeBreeze = + shouldPreferNativeStaticLayoutBeforeBreeze(runtimePlatform, backendPreference); const shouldTryNativeStaticLayout = backendPreference === "breeze" || - this.config.experimentalNvidiaCudaExport === true; + this.config.experimentalNvidiaCudaExport === true || + prefersNativeStaticLayoutBeforeBreeze; let shouldDeferNativeEncoderStart = backendPreference === "breeze" || this.config.experimentalNvidiaCudaExport === true || - shouldPreferNativeStaticLayoutBeforeBreeze(runtimePlatform, backendPreference); + prefersNativeStaticLayoutBeforeBreeze; this.lastNativeExportError = null; let stageStartedAt = this.getNowMs();