@plasius/gpu-renderer 0.2.41 → 0.2.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +3 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/wavefront-frame-telemetry.js +5 -1
package/package.json
CHANGED
|
@@ -297,7 +297,11 @@ export function createWavefrontFrameTelemetryResources({
|
|
|
297
297
|
rayCountReadbackBuffer.unmap();
|
|
298
298
|
rayReadbackMapped = false;
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
let maximumBounceIndex = 0;
|
|
301
|
+
for (const bounceIndex of bounceIndices) {
|
|
302
|
+
maximumBounceIndex = Math.max(maximumBounceIndex, bounceIndex);
|
|
303
|
+
}
|
|
304
|
+
const bounceHistogram = Array.from({ length: maximumBounceIndex + 1 }, () => 0);
|
|
301
305
|
let observedPrimaryRays = 0;
|
|
302
306
|
let secondaryRays = 0;
|
|
303
307
|
let totalPathSegments = 0;
|