3D engine that AI agents drive
Drop a scene file's own f-stop in the Cook comparison so both sides take the lens from the flags (#896)
Nguyen Xuan An717473887be3
diff --git a/bench/cycles-parity/trace-native.mjs b/bench/cycles-parity/trace-native.mjsindex 88f501d3..c64e3461 100644--- a/bench/cycles-parity/trace-native.mjs+++ b/bench/cycles-parity/trace-native.mjs@@ -317,7 +317,9 @@ async function runCli() {const buildStarted = performance.now();const traceSource = await reconstructTraceSceneSource(description);const traceScene = buildTraceSceneWithManyLights(traceSource.parts, traceSource.environment);- const camera = createCamera({ ...traceSource.camera, ...options.lens }, options.width, options.height);+ // render-cycles.py takes the lens from the flags only, so a lens set in the scene file is dropped here to keep the two sides comparable.+ const { fStop: ignoredSceneFStop, ...sceneCameraWithoutLens } = traceSource.camera;+ const camera = createCamera({ ...sceneCameraWithoutLens, ...options.lens }, options.width, options.height);const samplesPerDispatch = options.samplesPerDispatch !== undefined? options.samplesPerDispatch: (options.noiseThreshold > 0 ? 8 : undefined);