fix(export): align native static route gates

This commit is contained in:
wiiiii123
2026-05-24 19:56:18 +07:00
parent 7ba7f70e26
commit 2f010da30f
+5 -2
View File
@@ -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();