diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.ts index 856fb643..1a926718 100644 --- a/electron/electron-env.d.ts +++ b/electron/electron-env.d.ts @@ -207,7 +207,6 @@ interface RendererExportHardwareInfo { name: string; vendor: string | null; active: boolean | null; - videoMemoryMb: number | null; }>; gpuFeatures: { videoDecode: string | null; diff --git a/electron/ipc/export/native-video.test.ts b/electron/ipc/export/native-video.test.ts index 9f1245cc..89448539 100644 --- a/electron/ipc/export/native-video.test.ts +++ b/electron/ipc/export/native-video.test.ts @@ -432,7 +432,6 @@ describe("export hardware diagnostics", () => { vendorId: "0x10de", deviceId: 9999, deviceString: "NVIDIA GeForce RTX 4070", - videoMemory: 12_288, }, ], }); @@ -444,7 +443,6 @@ describe("export hardware diagnostics", () => { name: "NVIDIA GeForce RTX 4070", vendor: "NVIDIA", active: true, - videoMemoryMb: 12_288, }, ], }); diff --git a/electron/ipc/export/native-video.ts b/electron/ipc/export/native-video.ts index 4c91d6d7..81b56b48 100644 --- a/electron/ipc/export/native-video.ts +++ b/electron/ipc/export/native-video.ts @@ -60,7 +60,6 @@ type ElectronGpuDeviceLike = { vendorId?: number | string; vendorString?: string; deviceString?: string; - videoMemory?: number; }; type ElectronGpuInfoLike = { @@ -81,7 +80,6 @@ export interface ExportHardwareInfo { name: string; vendor: string | null; active: boolean | null; - videoMemoryMb: number | null; }>; gpuFeatures: { videoDecode: string | null; @@ -1939,10 +1937,6 @@ export function sanitizeExportGpuInfo( name: device.deviceString?.trim() || vendor || "Unknown GPU", vendor, active: typeof device.active === "boolean" ? device.active : null, - videoMemoryMb: - typeof device.videoMemory === "number" && device.videoMemory > 0 - ? device.videoMemory - : null, }; }) : []; diff --git a/electron/preload.ts b/electron/preload.ts index 768c3d40..990ee7a8 100644 --- a/electron/preload.ts +++ b/electron/preload.ts @@ -114,7 +114,6 @@ type ExportHardwareInfo = { name: string; vendor: string | null; active: boolean | null; - videoMemoryMb: number | null; }>; gpuFeatures: { videoDecode: string | null; diff --git a/src/lib/exporter/modernVideoExporter.fallback.test.ts b/src/lib/exporter/modernVideoExporter.fallback.test.ts index 6fe6c0b5..252d4280 100644 --- a/src/lib/exporter/modernVideoExporter.fallback.test.ts +++ b/src/lib/exporter/modernVideoExporter.fallback.test.ts @@ -352,7 +352,6 @@ describe("ModernVideoExporter native fallback routing", () => { name: "NVIDIA GeForce RTX 4070", vendor: "NVIDIA", active: true, - videoMemoryMb: 12_288, }, ], gpuFeatures: { @@ -384,7 +383,7 @@ describe("ModernVideoExporter native fallback routing", () => { expect(report).toContain("System: win32 10.0.26100 (x64); model=Custom PC"); expect(report).toContain("CPU: AMD Ryzen 9 7900X; 24 logical processors"); expect(report).toContain("Memory: 31.8 GB"); - expect(report).toContain("GPU 1: NVIDIA GeForce RTX 4070; VRAM=12288 MB; active"); + expect(report).toContain("GPU 1: NVIDIA GeForce RTX 4070; active"); expect(report).toContain( "GPU acceleration: video decode=enabled; video encode=enabled; WebGL=enabled; WebGPU=enabled", ); diff --git a/src/lib/exporter/modernVideoExporter.ts b/src/lib/exporter/modernVideoExporter.ts index d7490680..15afb5bc 100644 --- a/src/lib/exporter/modernVideoExporter.ts +++ b/src/lib/exporter/modernVideoExporter.ts @@ -1126,7 +1126,6 @@ export class ModernVideoExporter { gpu.vendor && !gpu.name.toLowerCase().includes(gpu.vendor.toLowerCase()) ? `vendor=${gpu.vendor}` : null, - gpu.videoMemoryMb ? `VRAM=${gpu.videoMemoryMb} MB` : null, gpu.active === true ? "active" : gpu.active === false ? "inactive" : null, ].filter((value): value is string => Boolean(value)); lines.push(