Skip to content

The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.

Render: WARP is a CPU renderer too, so a GPU-less Windows falls back and says so (#74)

l4580226f8ce6e89c5c
diff --git a/.changeset/warp-reads-as-a-gpu.md b/.changeset/warp-reads-as-a-gpu.md
new file mode 100644
index 0000000..883888f
--- /dev/null
+++ b/.changeset/warp-reads-as-a-gpu.md
@@ -0,0 +1,5 @@
+---
+'openfilm': patch
+---
+
+Render: on Windows, WARP ("Microsoft Basic Render Driver", what a computer without a GPU driver or a remote session falls back to) counts as software, so `look` warns about it and render doesn't keep Vulkan on it.
diff --git a/packages/openfilm/src/host.mjs b/packages/openfilm/src/host.mjs
index 1482a28..6db498f 100644
--- a/packages/openfilm/src/host.mjs
+++ b/packages/openfilm/src/host.mjs
@@ -234,8 +234,8 @@ export async function launch({ headed = false, channel = headed ? 'chromium' : n
return browser;
}
-/** A renderer string that is not a GPU: WebGL drawn on the CPU. */
-export const SOFTWARE_GL = /swiftshader|llvmpipe|software/i;
+/** A renderer string that is not a GPU: WebGL drawn on the CPU. Windows' WARP is one: "Microsoft Basic Render Driver". */
+export const SOFTWARE_GL = /swiftshader|llvmpipe|software|basic render/i;
/** The page's WebGL renderer as the driver names it; 'none' without WebGL. */
const readRenderer = () => {
diff --git a/packages/openfilm/src/host.test.mjs b/packages/openfilm/src/host.test.mjs
index 0f5fc71..48d74b8 100644
--- a/packages/openfilm/src/host.test.mjs
+++ b/packages/openfilm/src/host.test.mjs
@@ -135,7 +135,13 @@ test('Windows: Vulkan when its renderer is a GPU, read once; otherwise the defau
assert.equal(gpu.count, 1);
assert.deepEqual(l.closed, []);
- for (const said of [async () => 'ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver)', async () => 'none', async () => { throw new Error('page crashed'); }]) {
+ /* WARP is Microsoft's own software rasteriser: a machine with no GPU driver, or a remote session, reads it. */
+ for (const said of [
+ async () => 'ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver)',
+ async () => 'ANGLE (Microsoft, Microsoft Basic Render Driver (0x0000008C) Direct3D11 vs_5_0 ps_5_0, D3D11)',
+ async () => 'none',
+ async () => { throw new Error('page crashed'); },
+ ]) {
const software = reads(said);
l = launcher(); pick = vulkanFirst(software.renderer);
const [first, second] = await Promise.all([pick(l.open), pick(l.open)]);