@woosh/meep-engine 3.74.0 → 3.75.0
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 +20 -19
- package/package.json +1 -1
- package/src/core/geom/2d/hilbert/v2_hilbert_encode.d.ts +11 -0
- package/src/core/geom/2d/hilbert/v2_hilbert_encode.d.ts.map +1 -0
- package/src/core/geom/2d/hilbert/v2_hilbert_encode.js +46 -0
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts +6 -0
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts.map +1 -1
- package/src/engine/graphics/render/frame_graph/FrameGraph.js +9 -0
- package/src/engine/graphics3/GPUAcousticSystem.d.ts +29 -32
- package/src/engine/graphics3/GPUAcousticSystem.d.ts.map +1 -1
- package/src/engine/graphics3/GPUAcousticSystem.js +87 -162
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/AudioEmitterSystem.js +35 -17
- package/src/engine/sound/ecs/audio/LiveEmitterSet.d.ts.map +1 -1
- package/src/engine/sound/ecs/audio/LiveEmitterSet.js +2 -3
- package/src/engine/sound/simulation/AcousticSimulator.d.ts +7 -0
- package/src/engine/sound/simulation/AcousticSimulator.d.ts.map +1 -1
- package/src/engine/sound/simulation/AcousticSimulator.js +27 -0
- package/src/engine/sound/simulation/README.md +121 -107
- package/src/engine/sound/sopra/README.md +8 -3
- package/src/engine/sound/sopra/definition/effect/AcousticReverbEffect.d.ts +2 -2
- package/src/engine/sound/sopra/definition/effect/AcousticReverbEffect.d.ts.map +1 -1
- package/src/engine/sound/sopra/definition/effect/AcousticReverbEffect.js +4 -3
- package/src/engine/sound/sopra/runtime/AcousticReverbConvolution.d.ts +118 -0
- package/src/engine/sound/sopra/runtime/AcousticReverbConvolution.d.ts.map +1 -0
- package/src/engine/sound/sopra/runtime/AcousticReverbConvolution.js +472 -0
- package/src/engine/sound/sopra/runtime/AcousticReverbLines.d.ts +166 -0
- package/src/engine/sound/sopra/runtime/AcousticReverbLines.d.ts.map +1 -0
- package/src/engine/sound/sopra/runtime/AcousticReverbLines.js +447 -0
- package/src/engine/sound/sopra/runtime/AcousticReverbNetwork.d.ts +69 -113
- package/src/engine/sound/sopra/runtime/AcousticReverbNetwork.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/AcousticReverbNetwork.js +143 -491
- package/src/engine/sound/sopra/runtime/AcousticSpeakers.d.ts +102 -0
- package/src/engine/sound/sopra/runtime/AcousticSpeakers.d.ts.map +1 -0
- package/src/engine/sound/sopra/runtime/AcousticSpeakers.js +232 -0
- package/src/engine/sound/sopra/runtime/BusGraph.d.ts +17 -3
- package/src/engine/sound/sopra/runtime/BusGraph.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/BusGraph.js +55 -5
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts +8 -6
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/EventInstance.js +113 -105
- package/src/engine/sound/sopra/runtime/acoustic_reverb_decay.d.ts +13 -0
- package/src/engine/sound/sopra/runtime/acoustic_reverb_decay.d.ts.map +1 -0
- package/src/engine/sound/sopra/runtime/acoustic_reverb_decay.js +15 -0
- package/src/generation/grid/generation/discrete/GridTaskConnectRooms.d.ts.map +1 -1
- package/src/generation/grid/generation/discrete/GridTaskConnectRooms.js +4 -6
- package/src/shade/playground/skinned_blas_refit/diff_traced_against_rasterized.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/diff_traced_against_rasterized.js +4 -5
- package/src/shade/playground/skinned_blas_refit/main.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/main.js +6 -12
- package/src/shade/playground/skinned_mesh_soup/main.d.ts.map +1 -1
- package/src/shade/playground/skinned_mesh_soup/main.js +1 -2
- package/src/shade/playground/vgeo_scene/README.md +12 -2
- package/src/shade/playground/vgeo_scene/main.js +1 -1
- package/src/shade/playground/volumetrics_froxel/README.md +191 -191
- package/src/shade/playground/volumetrics_froxel/measure.d.ts +3 -3
- package/src/shade/playground/volumetrics_froxel/measure.d.ts.map +1 -1
- package/src/shade/playground/volumetrics_froxel/measure.js +11 -13
- package/src/shade/playground/vsm/main.d.ts.map +1 -1
- package/src/shade/playground/vsm/main.js +5 -6
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +31 -8
- package/src/shade/renderer/acoustics/ACOUSTIC_LISTENER_RESOURCES.d.ts +28 -0
- package/src/shade/renderer/acoustics/ACOUSTIC_LISTENER_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/ACOUSTIC_LISTENER_RESOURCES.js +42 -0
- package/src/shade/renderer/acoustics/ACOUSTIC_PROBE_DATABASE_SPEC.d.ts +58 -0
- package/src/shade/renderer/acoustics/ACOUSTIC_PROBE_DATABASE_SPEC.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/ACOUSTIC_PROBE_DATABASE_SPEC.js +108 -0
- package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +161 -0
- package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/GPUAcousticProbes.js +760 -0
- package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
- package/src/shade/renderer/acoustics/acoustic_listener_order.d.ts +12 -0
- package/src/shade/renderer/acoustics/acoustic_listener_order.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/acoustic_listener_order.js +56 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_direct.d.ts.map +1 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_direct.js +5 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_direct_cone.d.ts +57 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_direct_cone.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_direct_cone.js +314 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_finite.d.ts +15 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_finite.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_finite.js +21 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_gather.js +1 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_lean.d.ts +27 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_lean.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_lean.js +42 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_listener.d.ts +80 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_listener.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_listener.js +274 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_partials.d.ts +2 -2
- package/src/shade/renderer/acoustics/chunk_acoustic_partials.js +2 -2
- package/src/shade/renderer/acoustics/chunk_acoustic_phonon.d.ts +7 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_phonon.d.ts.map +1 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_phonon.js +24 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_resample.js +1 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_reservoir.js +1 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_through.d.ts +43 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_through.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_through.js +153 -0
- package/src/shade/renderer/acoustics/chunk_acoustic_trace.d.ts +3 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_trace.d.ts.map +1 -1
- package/src/shade/renderer/acoustics/chunk_acoustic_trace.js +10 -1
- package/src/shade/renderer/acoustics/shader_acoustic_combine.d.ts +7 -3
- package/src/shade/renderer/acoustics/shader_acoustic_combine.d.ts.map +1 -1
- package/src/shade/renderer/acoustics/shader_acoustic_combine.js +22 -6
- package/src/shade/renderer/acoustics/shader_acoustic_coupling.d.ts +14 -0
- package/src/shade/renderer/acoustics/shader_acoustic_coupling.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/shader_acoustic_coupling.js +102 -0
- package/src/shade/renderer/acoustics/shader_acoustic_listener.d.ts +12 -0
- package/src/shade/renderer/acoustics/shader_acoustic_listener.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/shader_acoustic_listener.js +80 -0
- package/src/shade/renderer/acoustics/shader_acoustic_receive.d.ts.map +1 -1
- package/src/shade/renderer/acoustics/shader_acoustic_receive.js +27 -6
- package/src/shade/renderer/acoustics/shader_acoustic_room.d.ts +11 -0
- package/src/shade/renderer/acoustics/shader_acoustic_room.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/shader_acoustic_room.js +111 -0
- package/src/shade/renderer/acoustics/shader_acoustic_source.d.ts +18 -0
- package/src/shade/renderer/acoustics/shader_acoustic_source.d.ts.map +1 -0
- package/src/shade/renderer/acoustics/shader_acoustic_source.js +130 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/geometry/virtual/build/level/VGeoFrontier.d.ts +2 -2
- package/src/shade/renderer/geometry/virtual/build/level/VGeoFrontier.js +2 -2
- package/src/shade/renderer/geometry/virtual/build/level/VGeoLevelOptions.d.ts +5 -2
- package/src/shade/renderer/geometry/virtual/build/level/VGeoLevelOptions.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/build/level/VGeoLevelOptions.js +5 -2
- package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_group_step.d.ts +9 -2
- package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_group_step.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_group_step.js +48 -12
- package/src/shade/renderer/geometry/virtual/format/read/VGeoContainerReader.d.ts +0 -22
- package/src/shade/renderer/geometry/virtual/format/read/VGeoContainerReader.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/format/read/VGeoContainerReader.js +0 -42
- package/src/shade/renderer/geometry/virtual/format/read/VGeoReadOptions.d.ts +2 -18
- package/src/shade/renderer/geometry/virtual/format/read/VGeoReadOptions.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/format/read/VGeoReadOptions.js +2 -19
- package/src/shade/renderer/geometry/virtual/format/read/vgeo_page_worker_serve.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/format/read/vgeo_page_worker_serve.js +0 -1
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts +5 -4
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.js +3 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.js +3 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.js +0 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts +60 -14
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts.map +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.js +75 -39
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +0 -9
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +45 -17
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +7 -3
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +43 -7
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
|
@@ -1,191 +1,191 @@
|
|
|
1
|
-
# volumetrics_froxel
|
|
2
|
-
|
|
3
|
-
Real participating media, a movable sun and a wide-FOV camera in front of the froxel volumetrics
|
|
4
|
-
pass.
|
|
5
|
-
|
|
6
|
-
```bash
|
|
7
|
-
npm run dev --workspace @woosh/meep-engine
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
then open <http://localhost:5173/src/shade/playground/volumetrics_froxel/index.html>.
|
|
11
|
-
|
|
12
|
-
## Why it exists
|
|
13
|
-
|
|
14
|
-
`shader_volumetrics_build_lighting` and the passes around it were reviewed against current practice.
|
|
15
|
-
Five correctness findings came out of it; four were fixed and one was closed as a documented
|
|
16
|
-
non-issue. All five were geometric, and geometry is the class of defect a unit test can prove but
|
|
17
|
-
not show — an emulator can assert that a sample lands at the wrong depth and still not tell you
|
|
18
|
-
whether that reads as a smear, a seam, or nothing at all. This page was where that got decided.
|
|
19
|
-
|
|
20
|
-
| finding | what it was | where the fix lives |
|
|
21
|
-
|---|---|---|
|
|
22
|
-
| C-01a | Planar view depth walked as a distance along a unit ray, so the froxel sample fell short by cos θ | `chunk_camera_ray_planar_depth_scale`, from the lighting pass |
|
|
23
|
-
| C-01b | The aerial pass integrated Beer's law over a planar depth difference rather than arc length | same chunk, from the aerial pass — this was the visible half |
|
|
24
|
-
| C-02 | Cell-averaged grids read with the boundary-sampled convention, a ~0.53-froxel bias | `chunk_volumetrics_froxel_content_offset` |
|
|
25
|
-
| C-03 | Shadow ray clipped against a frustum with no far plane, so a sun anywhere in the view cone got zero optical depth | `chunk_integrate_optical_depth` takes the metadata frustum |
|
|
26
|
-
| C-04 | The shadow march addressed the froxel grid with the aerial LUT's depth curve | `volumetrics_position_world_to_froxel_uvw` |
|
|
27
|
-
| C-05 | Adjacent columns carry independent jitter, so an XY fetch mixes depths | closed — zero-mean and TAA-absorbable; `volumetrics/NOTES.md` has the measurements and why the obvious fix makes it worse |
|
|
28
|
-
|
|
29
|
-
Those fixes are in the permanent path now and there is nothing left to A/B. What the page is for is
|
|
30
|
-
the *next* change here — the performance findings especially, since every one of them trades image
|
|
31
|
-
quality for time and none can be judged from a screenshot.
|
|
32
|
-
|
|
33
|
-
Q-01 was judged here and now ships unconditionally: every clustered point and spot light is occluded
|
|
34
|
-
by geometry, sampled with one nearest tap out of the shadow atlas. The two checkboxes that switched
|
|
35
|
-
that off, or swapped the tap for the deferred pass's filter kernels, are gone along with the metadata
|
|
36
|
-
word behind them — `volumetrics/NOTES.md` keeps the measurements that closed the question. The
|
|
37
|
-
torches are the local lights here: 130 point lights, every one of them a shadow caster, and **zero
|
|
38
|
-
spot lights**, so the spot half has no on-screen coverage on this page and is covered by
|
|
39
|
-
`shader_volumetrics_build_lighting_local_shadow.spec.js` instead. Adding a `SpotLight` from the
|
|
40
|
-
console is the way to look at it.
|
|
41
|
-
|
|
42
|
-
Q-04 went the same way and its switch is gone too. The sun's media self-shadowing is one fetch into
|
|
43
|
-
a ladder of three cascaded volumes built once a frame with their third axis on the sun, and that is
|
|
44
|
-
now the only path for it: the `__VOL_SUN_SHADOW` global and the checkbox over it are removed along
|
|
45
|
-
with the `sun_shadow_mode` word they drove, so nothing on this page reproduces the march/cascade
|
|
46
|
-
comparison any more. Restoring it means re-adding that word and the branch in
|
|
47
|
-
`shader_volumetrics_build_lighting` that reads it.
|
|
48
|
-
|
|
49
|
-
Worth knowing what it was, because it is the size of what the page can no longer show. Against a
|
|
50
|
-
march at `STEP_COUNT = 512` the cascades read within 1.2 mean luminance at every viewpoint here and
|
|
51
|
-
across 40 to 110 degrees of field of view, while sixteen steps read **+58** and **+70** at the two
|
|
52
|
-
poses beside the small fog boxes — the step there is eight units, the box is three thick, and the
|
|
53
|
-
march goes straight over it. They are also cheaper: 0.37 ms against 0.53 at 1080p, 0.81 against 1.52
|
|
54
|
-
at 2160p, per pass. `volumetrics/NOTES.md` has the whole measurement, including the one that says a
|
|
55
|
-
*single* world-uniform box could not have been sized correctly at any resolution — every shape
|
|
56
|
-
measured has a field of view at which it is 28 to 50 luminance from the truth, and which one that is
|
|
57
|
-
moves with the resolution.
|
|
58
|
-
|
|
59
|
-
The march itself is still in the tree and still runs: every point and spot light uses it, and so
|
|
60
|
-
would a second directional light. Only the first one is amortized, because there is one ladder of
|
|
61
|
-
boxes and it is aligned to one direction.
|
|
62
|
-
|
|
63
|
-
## Measuring, rather than eyeballing
|
|
64
|
-
|
|
65
|
-
This pass is stochastic and temporally filtered, so most changes to it move the image by less than
|
|
66
|
-
the frame-to-frame noise. A screenshot pair is not evidence. Four traps, each of which produced a
|
|
67
|
-
confident wrong answer during the work above:
|
|
68
|
-
|
|
69
|
-
- **Auto exposure.** It keeps adapting for seconds after any change, so two captures of the
|
|
70
|
-
*identical* setting differed in mean luminance by more than the change being judged. Off by
|
|
71
|
-
default here; `renderer.exposure_compensation` sets the fixed value.
|
|
72
|
-
- **Per-frame jitter.** The column jitter and the sample RNG both key on `view.frame_index`, so
|
|
73
|
-
consecutive frames genuinely differ. Average 18+ frames per capture.
|
|
74
|
-
- **No noise floor, no result.** Capture the *same* setting twice and difference those first. If the
|
|
75
|
-
change's delta is not clearly above that, nothing has been shown.
|
|
76
|
-
- **The noise floor has to pay the same costs the signal does.** Anything that calls
|
|
77
|
-
`indicate_view_change()` resets temporal accumulation, so a capture taken right after one carries
|
|
78
|
-
a re-convergence transient that a back-to-back capture does not. Measuring the floor without that
|
|
79
|
-
in the middle inflates every result — it made C-04 fail a test it should have passed. Capture as
|
|
80
|
-
*change → settle ~45 frames → average*, and take the floor by making an identical no-op change so
|
|
81
|
-
both paths cost the same.
|
|
82
|
-
|
|
83
|
-
- **Frame time here is presentation-throttled, not GPU-bound.** At 1920×1080 every setting reads
|
|
84
|
-
~16.5 ms, including settings that do obviously different amounts of work — `ms_octaves` at 1 and at
|
|
85
|
-
8 come back within noise of each other, which is the tell. The swap chain is pacing the
|
|
86
|
-
measurement. Raise `renderer.pixel_ratio` until the GPU is the bottleneck (3 gives 3840×2160 and
|
|
87
|
-
~10 ms of real work here), interleave the settings round-robin so drift hits all of them equally,
|
|
88
|
-
and take medians. Remember the froxel grid scales with resolution, so a per-froxel cost measured at
|
|
89
|
-
4× the pixels is 4× the one you will pay.
|
|
90
|
-
|
|
91
|
-
Prefer the **signed mean** when the change has a direction; it discriminates far better than the
|
|
92
|
-
mean-absolute, which is dominated by noise. C-01b read −0.148 at 60° FOV against a floor of ±0.05,
|
|
93
|
-
and −1.071 at 110°: same fix, and that 7× is the `1/cos θ` scaling it predicts.
|
|
94
|
-
|
|
95
|
-
Also: mutating `light.intensity` does not mark the light buffer dirty, so a sweep of it renders
|
|
96
|
-
identically. Remove and re-add the light instead.
|
|
97
|
-
|
|
98
|
-
### measure.js
|
|
99
|
-
|
|
100
|
-
`measure.js` is that protocol as code, loaded from the console rather than by the page:
|
|
101
|
-
|
|
102
|
-
```js
|
|
103
|
-
const m =
|
|
104
|
-
const r = await m.ab(v => globalThis.__VOL_TAA_ENABLED = v, false, true);
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
`attach` pauses the page's loop — which matters for a reason beyond frame counting: that loop
|
|
108
|
-
assigns `renderer.pixel_ratio = window.devicePixelRatio` on every tick, ahead of its own pause check,
|
|
109
|
-
so a raised pixel ratio is undone before the next frame unless the loop is stopped. `set_pixel_ratio`
|
|
110
|
-
replaces the property for the same reason.
|
|
111
|
-
|
|
112
|
-
Everything renders into a texture the module owns, through `Renderer.render_to_target`, which shares
|
|
113
|
-
the view context and therefore all the temporal history with the canvas path. That is not a
|
|
114
|
-
refinement: a canvas texture is configured by the presentation path, cannot carry `COPY_SRC`, and is
|
|
115
|
-
rotated away the moment the frame is presented, so a `drawImage` off it a task later returns an empty
|
|
116
|
-
bitmap — and a comparison of two blanks reports perfect agreement. Driving the frames from here also
|
|
117
|
-
takes the swap chain out of the timing entirely, which is the presentation-throttling trap above.
|
|
118
|
-
|
|
119
|
-
`ab` runs the two settings interleaved and takes its own floor from a repeat of each. `fly`,
|
|
120
|
-
`converge_at` and `series_stats` are the camera-path half: a structure fitted to the camera can be
|
|
121
|
-
perfectly correct standing still and swim under motion, and neither swimming nor the ghosting the
|
|
122
|
-
0.95-blend TAA turns it into is visible in a still. `time` and `profile` answer different questions and
|
|
123
|
-
`profile` is the one to believe — at 1080p, whole-frame timing of Q-04 came back with the wrong sign
|
|
124
|
-
three runs in a row while the per-pass capture read it cleanly.
|
|
125
|
-
|
|
126
|
-
`profile` records a `WORKLOAD` session and decodes it in the page, so a cost number does not need a
|
|
127
|
-
downloaded `.sgpt` and a second tool. It returns the median duration per pass label over the frames
|
|
128
|
-
it recorded. Interleave the settings and take medians across rounds even so — the run-to-run spread
|
|
129
|
-
on this machine moves a pass by more than most changes to it do:
|
|
130
|
-
|
|
131
|
-
```js
|
|
132
|
-
const p = await m.profile({ frames: 24 });
|
|
133
|
-
p['Volumetrics / build sun shadow volume 0'];
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
## Recording a GPU profile
|
|
137
|
-
|
|
138
|
-
**T** starts a recording, **T** again stops it and downloads a `.sgpt` capture. The engine side is
|
|
139
|
-
already there — `Renderer.profile_session` is a nullable field and the null checks around it are the
|
|
140
|
-
whole integration — so this page is only the two imports, the key handler, and the metadata a capture
|
|
141
|
-
needs in order to mean anything later: adapter, engine version, device features, and a note carrying
|
|
142
|
-
the viewpoint, FOV, pixel ratio and volumetric TAA setting that were in force when you pressed the
|
|
143
|
-
key.
|
|
144
|
-
|
|
145
|
-
Level is `WORKLOAD`: pass spans, the frame graph, and dispatch/draw counts. Measured on this page it
|
|
146
|
-
runs about 11 KB a frame — roughly 660 KB/s at 60 Hz, and around 393 spans per frame — with the frame
|
|
147
|
-
graph topology stored once and shared by every frame. `VERBOSE` above it adds bind group contents at
|
|
148
|
-
about seven times the rate and wants a frame limit set; `PROFILE_LEVEL` in `main.js` is the one line
|
|
149
|
-
to change.
|
|
150
|
-
|
|
151
|
-
Two things to know. Stopping does not end the recording immediately: a frame is committed when its
|
|
152
|
-
timestamp readback lands, a `mapAsync` a frame or two behind submit, so the handler drains the queue
|
|
153
|
-
and waits for the frame count to settle before it writes the file — otherwise the last frames, the
|
|
154
|
-
ones you were probably looking at, are the ones missing. And the browser asks before letting a page
|
|
155
|
-
save more than one file, so a second capture may never appear; the filename goes to the console
|
|
156
|
-
either way.
|
|
157
|
-
|
|
158
|
-
Frames only accumulate while the page is rendering, so a recording taken while paused stays at zero.
|
|
159
|
-
|
|
160
|
-
## Scene
|
|
161
|
-
|
|
162
|
-
`flying_world_-_battle_of_the_trash_god/v2`, six participating-media volumes, a low sun, and the
|
|
163
|
-
Venice sunset environment. Both the volumes and most of the camera placements are carried over from
|
|
164
|
-
the sibling repo's playground, where they were found by hand against this exact model — keeping the
|
|
165
|
-
numbers means a before/after pair is taken from the same place to the pixel.
|
|
166
|
-
|
|
167
|
-
Assets live under `test_assets/`, which is gitignored; `test_assets/README.md` has how they get
|
|
168
|
-
there. This page needs:
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
mkdir -p "test_assets/flying_world_-_battle_of_the_trash_god/v2"
|
|
172
|
-
cp "H:/git/meep-renderer-deferred-algo/public/flying_world_-_battle_of_the_trash_god/v2/scene.gltf" "H:/git/meep-renderer-deferred-algo/public/flying_world_-_battle_of_the_trash_god/v2/scene.bin" "test_assets/flying_world_-_battle_of_the_trash_god/v2/"
|
|
173
|
-
cp "H:/git/meep-renderer-deferred-algo/public/environments/octahedral/venice_sunset_2k.hdr" test_assets/environments/octahedral/
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Only `scene.gltf` and `scene.bin` are needed from that directory — about 26 MB. glTF rather than the
|
|
177
|
-
`.shade` sitting beside it: that export's header reads format version 1 and `deserialize_scene`
|
|
178
|
-
accepts version 2 only, deliberately and with no backward compatibility.
|
|
179
|
-
|
|
180
|
-
## Notes
|
|
181
|
-
|
|
182
|
-
Two viewpoints from the sibling repo (`v_volumetrics_light_extinction_0` and `_1`) sit inside
|
|
183
|
-
geometry here and were replaced with placements verified against this build. Two more —
|
|
184
|
-
*Beside the fog box* and *Beside the fog box, deeper* — were added for Q-04: they are the only
|
|
185
|
-
placements in the scene where the sun's path through the medium is short enough for the 16-step
|
|
186
|
-
march to miss it, which makes them the ones any change to that path has to be judged at. *Log camera* writes the
|
|
187
|
-
current placement to the console in the form the `VIEWS` table takes, which is how to add more.
|
|
188
|
-
|
|
189
|
-
Frame time settles around 28 ms at 1920×1080 on a 4070-class part. That is the whole frame, not the
|
|
190
|
-
volumetrics pass — separating it out needs a timestamp query. It is the baseline the performance
|
|
191
|
-
findings (P-01 … P-06) would move.
|
|
1
|
+
# volumetrics_froxel
|
|
2
|
+
|
|
3
|
+
Real participating media, a movable sun and a wide-FOV camera in front of the froxel volumetrics
|
|
4
|
+
pass.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm run dev --workspace @woosh/meep-engine
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
then open <http://localhost:5173/src/shade/playground/volumetrics_froxel/index.html>.
|
|
11
|
+
|
|
12
|
+
## Why it exists
|
|
13
|
+
|
|
14
|
+
`shader_volumetrics_build_lighting` and the passes around it were reviewed against current practice.
|
|
15
|
+
Five correctness findings came out of it; four were fixed and one was closed as a documented
|
|
16
|
+
non-issue. All five were geometric, and geometry is the class of defect a unit test can prove but
|
|
17
|
+
not show — an emulator can assert that a sample lands at the wrong depth and still not tell you
|
|
18
|
+
whether that reads as a smear, a seam, or nothing at all. This page was where that got decided.
|
|
19
|
+
|
|
20
|
+
| finding | what it was | where the fix lives |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| C-01a | Planar view depth walked as a distance along a unit ray, so the froxel sample fell short by cos θ | `chunk_camera_ray_planar_depth_scale`, from the lighting pass |
|
|
23
|
+
| C-01b | The aerial pass integrated Beer's law over a planar depth difference rather than arc length | same chunk, from the aerial pass — this was the visible half |
|
|
24
|
+
| C-02 | Cell-averaged grids read with the boundary-sampled convention, a ~0.53-froxel bias | `chunk_volumetrics_froxel_content_offset` |
|
|
25
|
+
| C-03 | Shadow ray clipped against a frustum with no far plane, so a sun anywhere in the view cone got zero optical depth | `chunk_integrate_optical_depth` takes the metadata frustum |
|
|
26
|
+
| C-04 | The shadow march addressed the froxel grid with the aerial LUT's depth curve | `volumetrics_position_world_to_froxel_uvw` |
|
|
27
|
+
| C-05 | Adjacent columns carry independent jitter, so an XY fetch mixes depths | closed — zero-mean and TAA-absorbable; `volumetrics/NOTES.md` has the measurements and why the obvious fix makes it worse |
|
|
28
|
+
|
|
29
|
+
Those fixes are in the permanent path now and there is nothing left to A/B. What the page is for is
|
|
30
|
+
the *next* change here — the performance findings especially, since every one of them trades image
|
|
31
|
+
quality for time and none can be judged from a screenshot.
|
|
32
|
+
|
|
33
|
+
Q-01 was judged here and now ships unconditionally: every clustered point and spot light is occluded
|
|
34
|
+
by geometry, sampled with one nearest tap out of the shadow atlas. The two checkboxes that switched
|
|
35
|
+
that off, or swapped the tap for the deferred pass's filter kernels, are gone along with the metadata
|
|
36
|
+
word behind them — `volumetrics/NOTES.md` keeps the measurements that closed the question. The
|
|
37
|
+
torches are the local lights here: 130 point lights, every one of them a shadow caster, and **zero
|
|
38
|
+
spot lights**, so the spot half has no on-screen coverage on this page and is covered by
|
|
39
|
+
`shader_volumetrics_build_lighting_local_shadow.spec.js` instead. Adding a `SpotLight` from the
|
|
40
|
+
console is the way to look at it.
|
|
41
|
+
|
|
42
|
+
Q-04 went the same way and its switch is gone too. The sun's media self-shadowing is one fetch into
|
|
43
|
+
a ladder of three cascaded volumes built once a frame with their third axis on the sun, and that is
|
|
44
|
+
now the only path for it: the `__VOL_SUN_SHADOW` global and the checkbox over it are removed along
|
|
45
|
+
with the `sun_shadow_mode` word they drove, so nothing on this page reproduces the march/cascade
|
|
46
|
+
comparison any more. Restoring it means re-adding that word and the branch in
|
|
47
|
+
`shader_volumetrics_build_lighting` that reads it.
|
|
48
|
+
|
|
49
|
+
Worth knowing what it was, because it is the size of what the page can no longer show. Against a
|
|
50
|
+
march at `STEP_COUNT = 512` the cascades read within 1.2 mean luminance at every viewpoint here and
|
|
51
|
+
across 40 to 110 degrees of field of view, while sixteen steps read **+58** and **+70** at the two
|
|
52
|
+
poses beside the small fog boxes — the step there is eight units, the box is three thick, and the
|
|
53
|
+
march goes straight over it. They are also cheaper: 0.37 ms against 0.53 at 1080p, 0.81 against 1.52
|
|
54
|
+
at 2160p, per pass. `volumetrics/NOTES.md` has the whole measurement, including the one that says a
|
|
55
|
+
*single* world-uniform box could not have been sized correctly at any resolution — every shape
|
|
56
|
+
measured has a field of view at which it is 28 to 50 luminance from the truth, and which one that is
|
|
57
|
+
moves with the resolution.
|
|
58
|
+
|
|
59
|
+
The march itself is still in the tree and still runs: every point and spot light uses it, and so
|
|
60
|
+
would a second directional light. Only the first one is amortized, because there is one ladder of
|
|
61
|
+
boxes and it is aligned to one direction.
|
|
62
|
+
|
|
63
|
+
## Measuring, rather than eyeballing
|
|
64
|
+
|
|
65
|
+
This pass is stochastic and temporally filtered, so most changes to it move the image by less than
|
|
66
|
+
the frame-to-frame noise. A screenshot pair is not evidence. Four traps, each of which produced a
|
|
67
|
+
confident wrong answer during the work above:
|
|
68
|
+
|
|
69
|
+
- **Auto exposure.** It keeps adapting for seconds after any change, so two captures of the
|
|
70
|
+
*identical* setting differed in mean luminance by more than the change being judged. Off by
|
|
71
|
+
default here; `renderer.exposure_compensation` sets the fixed value.
|
|
72
|
+
- **Per-frame jitter.** The column jitter and the sample RNG both key on `view.frame_index`, so
|
|
73
|
+
consecutive frames genuinely differ. Average 18+ frames per capture.
|
|
74
|
+
- **No noise floor, no result.** Capture the *same* setting twice and difference those first. If the
|
|
75
|
+
change's delta is not clearly above that, nothing has been shown.
|
|
76
|
+
- **The noise floor has to pay the same costs the signal does.** Anything that calls
|
|
77
|
+
`indicate_view_change()` resets temporal accumulation, so a capture taken right after one carries
|
|
78
|
+
a re-convergence transient that a back-to-back capture does not. Measuring the floor without that
|
|
79
|
+
in the middle inflates every result — it made C-04 fail a test it should have passed. Capture as
|
|
80
|
+
*change → settle ~45 frames → average*, and take the floor by making an identical no-op change so
|
|
81
|
+
both paths cost the same.
|
|
82
|
+
|
|
83
|
+
- **Frame time here is presentation-throttled, not GPU-bound.** At 1920×1080 every setting reads
|
|
84
|
+
~16.5 ms, including settings that do obviously different amounts of work — `ms_octaves` at 1 and at
|
|
85
|
+
8 come back within noise of each other, which is the tell. The swap chain is pacing the
|
|
86
|
+
measurement. Raise `renderer.pixel_ratio` until the GPU is the bottleneck (3 gives 3840×2160 and
|
|
87
|
+
~10 ms of real work here), interleave the settings round-robin so drift hits all of them equally,
|
|
88
|
+
and take medians. Remember the froxel grid scales with resolution, so a per-froxel cost measured at
|
|
89
|
+
4× the pixels is 4× the one you will pay.
|
|
90
|
+
|
|
91
|
+
Prefer the **signed mean** when the change has a direction; it discriminates far better than the
|
|
92
|
+
mean-absolute, which is dominated by noise. C-01b read −0.148 at 60° FOV against a floor of ±0.05,
|
|
93
|
+
and −1.071 at 110°: same fix, and that 7× is the `1/cos θ` scaling it predicts.
|
|
94
|
+
|
|
95
|
+
Also: mutating `light.intensity` does not mark the light buffer dirty, so a sweep of it renders
|
|
96
|
+
identically. Remove and re-add the light instead.
|
|
97
|
+
|
|
98
|
+
### measure.js
|
|
99
|
+
|
|
100
|
+
`measure.js` is that protocol as code, loaded from the console rather than by the page:
|
|
101
|
+
|
|
102
|
+
```js
|
|
103
|
+
const m = (await import('./measure.js')).attach();
|
|
104
|
+
const r = await m.ab(v => globalThis.__VOL_TAA_ENABLED = v, false, true);
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
`attach` pauses the page's loop — which matters for a reason beyond frame counting: that loop
|
|
108
|
+
assigns `renderer.pixel_ratio = window.devicePixelRatio` on every tick, ahead of its own pause check,
|
|
109
|
+
so a raised pixel ratio is undone before the next frame unless the loop is stopped. `set_pixel_ratio`
|
|
110
|
+
replaces the property for the same reason.
|
|
111
|
+
|
|
112
|
+
Everything renders into a texture the module owns, through `Renderer.render_to_target`, which shares
|
|
113
|
+
the view context and therefore all the temporal history with the canvas path. That is not a
|
|
114
|
+
refinement: a canvas texture is configured by the presentation path, cannot carry `COPY_SRC`, and is
|
|
115
|
+
rotated away the moment the frame is presented, so a `drawImage` off it a task later returns an empty
|
|
116
|
+
bitmap — and a comparison of two blanks reports perfect agreement. Driving the frames from here also
|
|
117
|
+
takes the swap chain out of the timing entirely, which is the presentation-throttling trap above.
|
|
118
|
+
|
|
119
|
+
`ab` runs the two settings interleaved and takes its own floor from a repeat of each. `fly`,
|
|
120
|
+
`converge_at` and `series_stats` are the camera-path half: a structure fitted to the camera can be
|
|
121
|
+
perfectly correct standing still and swim under motion, and neither swimming nor the ghosting the
|
|
122
|
+
0.95-blend TAA turns it into is visible in a still. `time` and `profile` answer different questions and
|
|
123
|
+
`profile` is the one to believe — at 1080p, whole-frame timing of Q-04 came back with the wrong sign
|
|
124
|
+
three runs in a row while the per-pass capture read it cleanly.
|
|
125
|
+
|
|
126
|
+
`profile` records a `WORKLOAD` session and decodes it in the page, so a cost number does not need a
|
|
127
|
+
downloaded `.sgpt` and a second tool. It returns the median duration per pass label over the frames
|
|
128
|
+
it recorded. Interleave the settings and take medians across rounds even so — the run-to-run spread
|
|
129
|
+
on this machine moves a pass by more than most changes to it do:
|
|
130
|
+
|
|
131
|
+
```js
|
|
132
|
+
const p = await m.profile({ frames: 24 });
|
|
133
|
+
p['Volumetrics / build sun shadow volume 0'];
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Recording a GPU profile
|
|
137
|
+
|
|
138
|
+
**T** starts a recording, **T** again stops it and downloads a `.sgpt` capture. The engine side is
|
|
139
|
+
already there — `Renderer.profile_session` is a nullable field and the null checks around it are the
|
|
140
|
+
whole integration — so this page is only the two imports, the key handler, and the metadata a capture
|
|
141
|
+
needs in order to mean anything later: adapter, engine version, device features, and a note carrying
|
|
142
|
+
the viewpoint, FOV, pixel ratio and volumetric TAA setting that were in force when you pressed the
|
|
143
|
+
key.
|
|
144
|
+
|
|
145
|
+
Level is `WORKLOAD`: pass spans, the frame graph, and dispatch/draw counts. Measured on this page it
|
|
146
|
+
runs about 11 KB a frame — roughly 660 KB/s at 60 Hz, and around 393 spans per frame — with the frame
|
|
147
|
+
graph topology stored once and shared by every frame. `VERBOSE` above it adds bind group contents at
|
|
148
|
+
about seven times the rate and wants a frame limit set; `PROFILE_LEVEL` in `main.js` is the one line
|
|
149
|
+
to change.
|
|
150
|
+
|
|
151
|
+
Two things to know. Stopping does not end the recording immediately: a frame is committed when its
|
|
152
|
+
timestamp readback lands, a `mapAsync` a frame or two behind submit, so the handler drains the queue
|
|
153
|
+
and waits for the frame count to settle before it writes the file — otherwise the last frames, the
|
|
154
|
+
ones you were probably looking at, are the ones missing. And the browser asks before letting a page
|
|
155
|
+
save more than one file, so a second capture may never appear; the filename goes to the console
|
|
156
|
+
either way.
|
|
157
|
+
|
|
158
|
+
Frames only accumulate while the page is rendering, so a recording taken while paused stays at zero.
|
|
159
|
+
|
|
160
|
+
## Scene
|
|
161
|
+
|
|
162
|
+
`flying_world_-_battle_of_the_trash_god/v2`, six participating-media volumes, a low sun, and the
|
|
163
|
+
Venice sunset environment. Both the volumes and most of the camera placements are carried over from
|
|
164
|
+
the sibling repo's playground, where they were found by hand against this exact model — keeping the
|
|
165
|
+
numbers means a before/after pair is taken from the same place to the pixel.
|
|
166
|
+
|
|
167
|
+
Assets live under `test_assets/`, which is gitignored; `test_assets/README.md` has how they get
|
|
168
|
+
there. This page needs:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
mkdir -p "test_assets/flying_world_-_battle_of_the_trash_god/v2"
|
|
172
|
+
cp "H:/git/meep-renderer-deferred-algo/public/flying_world_-_battle_of_the_trash_god/v2/scene.gltf" "H:/git/meep-renderer-deferred-algo/public/flying_world_-_battle_of_the_trash_god/v2/scene.bin" "test_assets/flying_world_-_battle_of_the_trash_god/v2/"
|
|
173
|
+
cp "H:/git/meep-renderer-deferred-algo/public/environments/octahedral/venice_sunset_2k.hdr" test_assets/environments/octahedral/
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Only `scene.gltf` and `scene.bin` are needed from that directory — about 26 MB. glTF rather than the
|
|
177
|
+
`.shade` sitting beside it: that export's header reads format version 1 and `deserialize_scene`
|
|
178
|
+
accepts version 2 only, deliberately and with no backward compatibility.
|
|
179
|
+
|
|
180
|
+
## Notes
|
|
181
|
+
|
|
182
|
+
Two viewpoints from the sibling repo (`v_volumetrics_light_extinction_0` and `_1`) sit inside
|
|
183
|
+
geometry here and were replaced with placements verified against this build. Two more —
|
|
184
|
+
*Beside the fog box* and *Beside the fog box, deeper* — were added for Q-04: they are the only
|
|
185
|
+
placements in the scene where the sun's path through the medium is short enough for the 16-step
|
|
186
|
+
march to miss it, which makes them the ones any change to that path has to be judged at. *Log camera* writes the
|
|
187
|
+
current placement to the console in the form the `VIEWS` table takes, which is how to add more.
|
|
188
|
+
|
|
189
|
+
Frame time settles around 28 ms at 1920×1080 on a 4070-class part. That is the whole frame, not the
|
|
190
|
+
volumetrics pass — separating it out needs a timestamp query. It is the baseline the performance
|
|
191
|
+
findings (P-01 … P-06) would move.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Not imported by the page — it is loaded from the console when there is something to measure:
|
|
5
5
|
*
|
|
6
6
|
* ```js
|
|
7
|
-
* const m =
|
|
7
|
+
* const m = (await import('./measure.js')).attach();
|
|
8
8
|
* await m.ab(v => globalThis.__VOL_TAA_ENABLED = v, false, true);
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
@@ -45,7 +45,7 @@ export function attach({ renderer, scene, camera, controller, }?: {
|
|
|
45
45
|
scene?: Scene;
|
|
46
46
|
camera?: PerspectiveCamera;
|
|
47
47
|
controller?: OrbitalCameraController;
|
|
48
|
-
}):
|
|
48
|
+
}): {
|
|
49
49
|
renderer: Renderer;
|
|
50
50
|
scene: Scene;
|
|
51
51
|
camera: PerspectiveCamera;
|
|
@@ -115,5 +115,5 @@ export function attach({ renderer, scene, camera, controller, }?: {
|
|
|
115
115
|
[x: string]: number;
|
|
116
116
|
}>;
|
|
117
117
|
set_pixel_ratio: (ratio: any) => void;
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../../src/shade/playground/volumetrics_froxel/measure.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../../src/shade/playground/volumetrics_froxel/measure.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;;;;;GAMG;AACH;IAL8B,QAAQ;IACX,KAAK;IACO,MAAM;IACA,UAAU;;;;;;;;;;UAqLtC,QAAQ,YAAY,CAAC;;;;;gCA5DvB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4MV,QAAQ,MAAM,EAAE,CAAC;;;;;;;;;;;;;QAsGF,MAAM,GAAvB,MAAM;QACW,MAAM,GAAvB,MAAM;UACJ;YAAe,MAAM,GAAE,MAAM;MAAE;;EAgF/C"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { number_compare_ascending } from "../../../core/primitives/numbers/number_compare_ascending.js";
|
|
2
|
+
import { GPUProfileLevel } from "../../device/timing/profile/GPUProfileLevel.js";
|
|
3
|
+
import { GPUProfileSession } from "../../device/timing/profile/GPUProfileSession.js";
|
|
4
|
+
import { sgpt_read_capture } from "../../device/timing/profile/sgpt_read_capture.js";
|
|
5
|
+
import { GPUTextureContext } from "../../renderer/texture/GPUTextureContext.js";
|
|
2
6
|
/**
|
|
3
7
|
* The measurement protocol from this page's README, as code.
|
|
4
8
|
*
|
|
5
9
|
* Not imported by the page — it is loaded from the console when there is something to measure:
|
|
6
10
|
*
|
|
7
11
|
* ```js
|
|
8
|
-
* const m =
|
|
12
|
+
* const m = (await import('./measure.js')).attach();
|
|
9
13
|
* await m.ab(v => globalThis.__VOL_TAA_ENABLED = v, false, true);
|
|
10
14
|
* ```
|
|
11
15
|
*
|
|
@@ -42,14 +46,12 @@ import { number_compare_ascending } from "../../../core/primitives/numbers/numbe
|
|
|
42
46
|
* @param {PerspectiveCamera} [context.camera]
|
|
43
47
|
* @param {OrbitalCameraController} [context.controller]
|
|
44
48
|
*/
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const { GPUTextureContext } = await import('../../renderer/texture/GPUTextureContext.js');
|
|
49
|
+
export function attach({
|
|
50
|
+
renderer = globalThis.renderer,
|
|
51
|
+
scene = globalThis.scene,
|
|
52
|
+
camera = globalThis.camera,
|
|
53
|
+
controller = globalThis.controller,
|
|
54
|
+
} = {}) {
|
|
53
55
|
|
|
54
56
|
const device = renderer.device;
|
|
55
57
|
|
|
@@ -475,10 +477,6 @@ export async function attach({
|
|
|
475
477
|
* `__frames` and `__defects`
|
|
476
478
|
*/
|
|
477
479
|
async function profile_passes({ frames = 40, settle: settle_frames = 20 } = {}) {
|
|
478
|
-
const { GPUProfileSession } = await import('../../device/timing/profile/GPUProfileSession.js');
|
|
479
|
-
const { GPUProfileLevel } = await import('../../device/timing/profile/GPUProfileLevel.js');
|
|
480
|
-
const { sgpt_read_capture } = await import('../../device/timing/profile/sgpt_read_capture.js');
|
|
481
|
-
|
|
482
480
|
await settle(settle_frames);
|
|
483
481
|
|
|
484
482
|
const session = new GPUProfileSession({ level: GPUProfileLevel.WORKLOAD, note: 'measure.js' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/shade/playground/vsm/main.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../src/shade/playground/vsm/main.js"],"names":[],"mappings":"AAuCA,uCA+VC"}
|
|
@@ -8,6 +8,7 @@ import { FrameRateMeter } from "../frame_rate_meter.js";
|
|
|
8
8
|
import { install_profile_hotkey } from "../profile_hotkey.js";
|
|
9
9
|
import { draw_clipmap_panel } from "./clipmap_panel.js";
|
|
10
10
|
import { aim_sun, create_courtyard, create_crowd } from "./scenes.js";
|
|
11
|
+
import { verify_vsm } from "./verify_vsm.js";
|
|
11
12
|
import { VSMDebugOverlay, VSMDebugView } from "./VSMDebugOverlay.js";
|
|
12
13
|
|
|
13
14
|
const element = id => document.getElementById(id);
|
|
@@ -140,7 +141,7 @@ export async function start() {
|
|
|
140
141
|
function apply_settings() {
|
|
141
142
|
renderer.feature_virtual_shadow_maps = element('technique').value === 'vsm';
|
|
142
143
|
renderer.shadow_virtual_page_budget = element('pause').checked ? 0 : Number(element('budget').value);
|
|
143
|
-
renderer.shadow_virtual_lod_bias = Number(element('bias').value);
|
|
144
|
+
renderer.shadow_virtual_lod_bias = Number(element('bias').value);
|
|
144
145
|
renderer.shadow_virtual_max_load_factor = Number(element('max-load').value);
|
|
145
146
|
renderer.shadow_virtual_first_texel_size = Number(element('texel').value);
|
|
146
147
|
renderer.feature_taa_enabled = element('taa').checked;
|
|
@@ -149,7 +150,7 @@ export async function start() {
|
|
|
149
150
|
overlay.inset = element('inset').checked;
|
|
150
151
|
|
|
151
152
|
element('budget-value').textContent = element('budget').value;
|
|
152
|
-
element('bias-value').textContent = Number(element('bias').value).toFixed(1);
|
|
153
|
+
element('bias-value').textContent = Number(element('bias').value).toFixed(1);
|
|
153
154
|
element('max-load-value').textContent = Number(element('max-load').value).toFixed(2);
|
|
154
155
|
element('crowd-value').textContent = element('crowd').value;
|
|
155
156
|
}
|
|
@@ -203,7 +204,7 @@ export async function start() {
|
|
|
203
204
|
|
|
204
205
|
lines.push(
|
|
205
206
|
`movers in scene: ${world.mover_count}`,
|
|
206
|
-
`pages: ${slots.used} / ${slots.capacity} resident (demand ${(s.load * 100).toFixed(1)}%)`,
|
|
207
|
+
`pages: ${slots.used} / ${slots.capacity} resident (demand ${(s.load * 100).toFixed(1)}%)`,
|
|
207
208
|
`lod bias: ${map.lod_bias.toFixed(2)} + ${s.dynamic_lod_bias.toFixed(2)} dyn = ${map.effective_lod_bias.toFixed(2)}`,
|
|
208
209
|
`this frame: ${s.renders} rendered, ${s.backlog} waiting`,
|
|
209
210
|
`reading: ${s.wants} wanted, ${s.uncovered} uncovered, ${s.requests_dropped} dropped`,
|
|
@@ -374,9 +375,7 @@ export async function start() {
|
|
|
374
375
|
},
|
|
375
376
|
};
|
|
376
377
|
|
|
377
|
-
globalThis.verify = () => paused(
|
|
378
|
-
const { verify_vsm } = await import('./verify_vsm.js');
|
|
379
|
-
|
|
378
|
+
globalThis.verify = () => paused(() => {
|
|
380
379
|
return verify_vsm({
|
|
381
380
|
renderer,
|
|
382
381
|
map: virtual_map(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/shade/renderer/Renderer.js"],"names":[],"mappings":"AAqMA;IAOI,0BAEC;IAED;;OAEG;IACH,0BAAQ;IAER;;;;;;OAMG;IACH,kDAEC;IAED;;OAEG;IACH,kBAAO;IAYP;;;OAGG;IACH,2BAEC;IAaD,wCAGC;IAED,uCAEC;IAED;;;;OAIG;IACH,wBAFU,yBAAyB,CAEoB;IAEvD;;;;;;;OAOG;IACH,mBAFU,gBAAgB,CAEgB;IAE1C;;;;OAIG;IACH,eAFU,oBAAoB,CAEa;IAY3C;;;;OAIG;IACH,e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AFa,IAAI,CA6ChB;IAkCD,4BAoBC;IAkID;;;;;OAKG;IACH,UAHW,MAAM,KACN,MAAM,QAgBhB;IAoFD,0CAMC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,eAZW,iBAAiB,SACjB,KAAK,uBACL,MAAM,GAIJ,OAAO,CAwDnB;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,yBARW,iBAAiB,SACjB,KAAK,sBACL,MAAM,UACN,iBAAiB,GACf,OAAO,CAiBnB;;
|
|
1
|
+
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/shade/renderer/Renderer.js"],"names":[],"mappings":"AAqMA;IAOI,0BAEC;IAED;;OAEG;IACH,0BAAQ;IAER;;;;;;OAMG;IACH,kDAEC;IAED;;OAEG;IACH,kBAAO;IAYP;;;OAGG;IACH,2BAEC;IAaD,wCAGC;IAED,uCAEC;IAED;;;;OAIG;IACH,wBAFU,yBAAyB,CAEoB;IAEvD;;;;;;;OAOG;IACH,mBAFU,gBAAgB,CAEgB;IAE1C;;;;OAIG;IACH,eAFU,oBAAoB,CAEa;IAY3C;;;;OAIG;IACH,eAFU,mBAAmB,CAEa;IAW1C;;;;;;;OAOG;IACH,mBAFU,qBAAqB,CAEkB;IAEjD;;;;OAIG;IACH,aAFU,UAAU,CAER;IAEZ;;;OAGG;IACH,QAFU,cAAc,CAEM;IAE9B;;;;;;;;;OASG;IACH,2BAFU,OAAO,CAEiB;IAElC,6BAA4B;IAC5B,8BAA4B;IAC5B;;;;OAIG;IACH,mCAAkC;IAClC;;;;;;;OAOG;IACH,mCAFU,OAAO,CAEyB;IAW1C,oCAIC;IAED,mCAEC;IAYD,oCAIC;IAED,mCAEC;IAED;;;;;;OAMG;IACH,6BAFU,OAAO,CAEmB;IAcpC;;OAEG;IACH,uCAEC;IAyBD,0CAIC;IAED,yCAEC;IAED;;;;;OAKG;IACH,yBAFU,MAAM,CAEY;IAW5B,8CAMC;IAED,6CAEC;IAUD,8CAMC;IAED,6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e;oBACpD,OAAO,kBAAkB,EAAE,KAAK;6BAnChB,yBAAyB;0CACZ,gCAAgC;iCACzC,yCAAyC;qCAtDrC,6DAA6D;oCAG9D,2DAA2D;sCAoDzD,4BAA4B;2BA7EvC,kCAAkC;+BA8E9B,6CAA6C;gCAC5C,sCAAsC;2BAhC3C,yCAAyC;6BAFvC,4CAA4C;8BAD3C,2CAA2C;4BAuD7C,uBAAuB;mCAChB,qCAAqC;gCAnExC,sBAAsB;oBAzDlC,4BAA4B;kCAwHd,gCAAgC;2BA9FvC,2BAA2B;iCA4FrB,0CAA0C;yBAtBlD,yBAAyB;kCAChB,kCAAkC;kCAUlC,wBAAwB;oBAnCtC,0BAA0B;gCA3Dd,uCAAuC;uCAiDhC,sDAAsD"}
|
|
@@ -2829,6 +2829,16 @@ export class Renderer {
|
|
|
2829
2829
|
*/
|
|
2830
2830
|
#frame_ahead_absorbed = null;
|
|
2831
2831
|
|
|
2832
|
+
/** What the scene's brick clipmap is built with each frame, kept rather than made. */
|
|
2833
|
+
#brick_world_update = { graph: null, view: null, settings: null, movers: -1 };
|
|
2834
|
+
|
|
2835
|
+
/**
|
|
2836
|
+
* The graph the next frame's FrameStart extensions record ahead into ({@link FrameContext#early_graph}): made again
|
|
2837
|
+
* only after a frame recorded into it.
|
|
2838
|
+
* @type {FrameGraph|null}
|
|
2839
|
+
*/
|
|
2840
|
+
#ahead_graph = null;
|
|
2841
|
+
|
|
2832
2842
|
/**
|
|
2833
2843
|
* The virtual-geometry runtime whose frame the frame in {@link #frame_command_ctx} opened, and
|
|
2834
2844
|
* null otherwise — so a frame that throws before closing it still closes it.
|
|
@@ -2894,8 +2904,9 @@ export class Renderer {
|
|
|
2894
2904
|
const ctx = ShadeGPUCommandContext.create(graphics, "Renderer/ahead");
|
|
2895
2905
|
|
|
2896
2906
|
if (recorder !== null) {
|
|
2907
|
+
// its passes are timed under their labels; the profile's graph, whose structure it records and whose pass ids
|
|
2908
|
+
// its spans name, is the frame's own
|
|
2897
2909
|
ctx.enable_profiling(recorder, AHEAD_QUERY_SET);
|
|
2898
|
-
recorder.attach_graph(graph);
|
|
2899
2910
|
|
|
2900
2911
|
this.#frame_ahead_absorbed = ctx.profiling_absorbed;
|
|
2901
2912
|
}
|
|
@@ -3054,7 +3065,13 @@ export class Renderer {
|
|
|
3054
3065
|
producers at `FrameStart` (such as `GPUFluidSystem` publishing `GPUSceneWind`) have finalized
|
|
3055
3066
|
their atlas and uniforms before `scene.tick` encodes.
|
|
3056
3067
|
*/
|
|
3057
|
-
|
|
3068
|
+
// a graph nothing was recorded into last frame serves again: a frame graph is single-use, but an untouched one
|
|
3069
|
+
// has not been used
|
|
3070
|
+
if (this.#ahead_graph === null || !this.#ahead_graph.untouched) {
|
|
3071
|
+
this.#ahead_graph = new FrameGraph("Ahead");
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
const early_graph = this.#ahead_graph;
|
|
3058
3075
|
const frame = new FrameContext(graph, view_ctx, early_graph);
|
|
3059
3076
|
const extension_filter = this.#in_canvas_render
|
|
3060
3077
|
&& !this.#wait_for_extensions_ready
|
|
@@ -3388,12 +3405,18 @@ export class Renderer {
|
|
|
3388
3405
|
// The scene's brick clipmap for whoever else holds it, the acoustics, under any mode: built here, where the
|
|
3389
3406
|
// probe clipmap GI builds it, after the frame's movers. Once a frame, so nothing when the GI built it above,
|
|
3390
3407
|
// and nothing when nobody holds it.
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3408
|
+
const world = this.#brick_world_update;
|
|
3409
|
+
|
|
3410
|
+
world.graph = graph;
|
|
3411
|
+
world.view = view_ctx;
|
|
3412
|
+
world.settings = this.probe_clipmap;
|
|
3413
|
+
world.movers = gr_scene_movers;
|
|
3414
|
+
|
|
3415
|
+
view_ctx.scene.brick_clipmap.graph_update(world);
|
|
3416
|
+
|
|
3417
|
+
world.graph = null;
|
|
3418
|
+
world.view = null;
|
|
3419
|
+
world.settings = null;
|
|
3397
3420
|
|
|
3398
3421
|
if (screen_probes) {
|
|
3399
3422
|
this.#screen_probe_gi.graph_update({
|