Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(export): align native static route gates

wiiiii123e92a863ec822
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();