Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Drop the local GPU queue wrapper from the water score command (part of #349)

Nguyen Xuan Ana9f7bfff77b8
diff --git a/bench/reference/README.md b/bench/reference/README.md
index 8e52c6fb..9e3e63a7 100644
--- a/bench/reference/README.md
+++ b/bench/reference/README.md
@@ -1784,7 +1784,7 @@ What would close it is a finer height-to-normal source than a 512 texel map (an
## Water shadows against Cycles (2026-11-04, closes the last box of issue #349)
-`GPU_LOCK_WEIGHT=heavy bash ~/.agents/tools/gpu-lock.sh node scripts/score-water-shadows.mjs` draws the pool of the section above from overhead in 67js (480 x 270, 40 degree view) and in Blender 5.2 Cycles (CPU, 6 threads, 96 samples, denoised): the water is a box with Volume Absorption (`1 - absorption / density` as colour, so the coefficient is the preset's per metre) plus Volume Scatter (density = the preset's turbidity per metre, an assumed mapping, since turbidity has no physical unit). The sky and sun in Cycles are set from the dry bed 67js measured (sky = shadowed bed / albedo, sun from the lit minus shadowed difference), so a dry pool is the same exposure in both. `bench/reference/water-shadows-cycles.py` builds it and `bench/reference/water-shadows-score.py` scores it.
+`node scripts/score-water-shadows.mjs` draws the pool of the section above from overhead in 67js (480 x 270, 40 degree view) and in Blender 5.2 Cycles (CPU, 6 threads, 96 samples, denoised): the water is a box with Volume Absorption (`1 - absorption / density` as colour, so the coefficient is the preset's per metre) plus Volume Scatter (density = the preset's turbidity per metre, an assumed mapping, since turbidity has no physical unit). The sky and sun in Cycles are set from the dry bed 67js measured (sky = shadowed bed / albedo, sun from the lit minus shadowed difference), so a dry pool is the same exposure in both. `bench/reference/water-shadows-cycles.py` builds it and `bench/reference/water-shadows-score.py` scores it.
Whole frame FLIP of 67js against Cycles (Cycles tone mapped like 67js), and the bed shadow contrast (lit minus shadowed against the same pool dry; red, green, blue):
diff --git a/scripts/score-water-shadows.mjs b/scripts/score-water-shadows.mjs
index f0952e3b..ffb9a62b 100644
--- a/scripts/score-water-shadows.mjs
+++ b/scripts/score-water-shadows.mjs
@@ -1,5 +1,5 @@
// Scores the water shadow pool against a Cycles reference (issue #349):
-// GPU_LOCK_WEIGHT=heavy bash ~/.agents/tools/gpu-lock.sh node scripts/score-water-shadows.mjs [work directory]
+// node scripts/score-water-shadows.mjs [work directory]
// Draws the pool from above in 67js, renders the same pool in Blender Cycles (volume absorption and scatter, CPU, 6 threads) with the sun and sky
// taken from the dry bed 67js measured, then FLIP-scores each pair with bench/reference/water-shadows-score.py. Results land in <work directory>/scores.json.
import { spawnSync } from 'node:child_process';