MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getGpuMemBudgetMb

Function getGpuMemBudgetMb

packages/engine/src/services/browserManager.ts:597–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

595}
596
597function getGpuMemBudgetMb(): number {
598 const vram = probeNvidiaVramMb();
599 if (vram) return Math.min(vram, 16384);
600
601 const total = getSystemTotalMb();
602 if (total < 4096) return 512;
603 if (total <= LOW_MEMORY_TOTAL_MB_THRESHOLD) return 1024;
604 return Math.min(Math.floor(total / 2), 16384);
605}
606
607function getLowMemoryFlags(): string[] {
608 const total = getSystemTotalMb();

Callers 1

buildChromeArgsFunction · 0.85

Calls 2

probeNvidiaVramMbFunction · 0.85
getSystemTotalMbFunction · 0.85

Tested by

no test coverage detected