mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-25 15:25:44 +00:00
Remove unsupported VRAM diagnostics
This commit is contained in:
Vendored
-1
@@ -207,7 +207,6 @@ interface RendererExportHardwareInfo {
|
||||
name: string;
|
||||
vendor: string | null;
|
||||
active: boolean | null;
|
||||
videoMemoryMb: number | null;
|
||||
}>;
|
||||
gpuFeatures: {
|
||||
videoDecode: string | null;
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
})
|
||||
: [];
|
||||
|
||||
@@ -114,7 +114,6 @@ type ExportHardwareInfo = {
|
||||
name: string;
|
||||
vendor: string | null;
|
||||
active: boolean | null;
|
||||
videoMemoryMb: number | null;
|
||||
}>;
|
||||
gpuFeatures: {
|
||||
videoDecode: string | null;
|
||||
|
||||
@@ -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",
|
||||
);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user