mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-25 07:16:02 +00:00
fix(export): tighten gpu route probe tests
This commit is contained in:
@@ -706,8 +706,12 @@ describe("buildExperimentalNvidiaCudaStaticLayoutArgs", () => {
|
||||
describe("buildExperimentalWindowsGpuStaticLayoutArgs", () => {
|
||||
it("prefers the high-performance adapter by default for D3D11 fallback diagnostics", () => {
|
||||
const envName = "RECORDLY_WINDOWS_GPU_EXPORT_ADAPTER_INDEX";
|
||||
const preferEnvName =
|
||||
"RECORDLY_WINDOWS_GPU_EXPORT_PREFER_HIGH_PERFORMANCE_ADAPTER";
|
||||
const originalValue = process.env[envName];
|
||||
const originalPreferValue = process.env[preferEnvName];
|
||||
delete process.env[envName];
|
||||
process.env[preferEnvName] = "1";
|
||||
|
||||
try {
|
||||
const args = buildExperimentalWindowsGpuStaticLayoutArgs(
|
||||
@@ -723,6 +727,11 @@ describe("buildExperimentalWindowsGpuStaticLayoutArgs", () => {
|
||||
} else {
|
||||
process.env[envName] = originalValue;
|
||||
}
|
||||
if (originalPreferValue === undefined) {
|
||||
delete process.env[preferEnvName];
|
||||
} else {
|
||||
process.env[preferEnvName] = originalPreferValue;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -2098,7 +2098,7 @@ export async function probeExperimentalNvidiaCudaExportCapability(
|
||||
const audioMode = options.audioOptions?.audioMode ?? "none";
|
||||
const audioSkipReason = getNvidiaCudaAudioExportSkipReason(audioMode, {
|
||||
allowValidatedFallbackCandidate:
|
||||
packagedAutoCandidateEnabled || isNvidiaCudaForceVideoOnlyEnabled(),
|
||||
packagedAutoCandidateActive || isNvidiaCudaForceVideoOnlyEnabled(),
|
||||
});
|
||||
let skipReason: string | null = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user