Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Load the sky through the fetch shim when exporting tier scenes (Part of #904)

Nguyen Xuan An7f9a889cd564
diff --git a/bench/tiers/run-all.mjs b/bench/tiers/run-all.mjs
index 256ca1bb..ec8eb2dc 100644
--- a/bench/tiers/run-all.mjs
+++ b/bench/tiers/run-all.mjs
@@ -71,7 +71,7 @@ async function exportSceneIfMissing(scene) {
const sceneJson = join(workDirectory, 'scenes', `${scene}.json`);
if (!existsSync(sceneJson)) {
console.log(`export ${scene}`);
- const exitCode = await run('node', ['bench/cycles-parity/export-scene.mjs', workDirectory, '--scene', scene], join(workDirectory, `export-${scene}.log`));
+ const exitCode = await run('node', ['--import', './bench/tiers/fetch-shim.mjs', 'bench/cycles-parity/export-scene.mjs', workDirectory, '--scene', scene], join(workDirectory, `export-${scene}.log`));
if (exitCode !== 0) throw new Error(`Exporting ${scene} failed, see ${workDirectory}/export-${scene}.log.`);
}
return sceneJson;