@null3d/engine 0.0.0-stage → 0.0.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/LICENSE-APACHE +176 -0
- package/LICENSE-MIT +21 -0
- package/THIRD-PARTY-NOTICES.txt +638 -0
- package/dist/wasm/single/null3d.js +3959 -0
- package/dist/wasm/single/null3d_bg.wasm +0 -0
- package/dist/wasm/threaded/null3d.js +3975 -0
- package/dist/wasm/threaded/null3d_bg.wasm +0 -0
- package/docs/api/animation.md +536 -0
- package/docs/api/assets.md +384 -0
- package/docs/api/cameras.md +159 -0
- package/docs/api/controls.md +317 -0
- package/docs/api/debug.md +445 -0
- package/docs/api/engine.md +248 -0
- package/docs/api/feature-draws.md +172 -0
- package/docs/api/feature-effects.md +137 -0
- package/docs/api/feature-instances.md +154 -0
- package/docs/api/features.md +324 -0
- package/docs/api/geometry.md +326 -0
- package/docs/api/grass.md +114 -0
- package/docs/api/impostors.md +163 -0
- package/docs/api/input.md +245 -0
- package/docs/api/lights.md +290 -0
- package/docs/api/lines.md +180 -0
- package/docs/api/materials.md +876 -0
- package/docs/api/math.md +130 -0
- package/docs/api/objects.md +155 -0
- package/docs/api/page.md +97 -0
- package/docs/api/particles.md +217 -0
- package/docs/api/points.md +152 -0
- package/docs/api/post.md +495 -0
- package/docs/api/quality.md +195 -0
- package/docs/api/raycast.md +288 -0
- package/docs/api/reference/animation.md +158 -0
- package/docs/api/reference/assets.md +335 -0
- package/docs/api/reference/cameras.md +135 -0
- package/docs/api/reference/controls.md +411 -0
- package/docs/api/reference/debug.md +571 -0
- package/docs/api/reference/engine.md +635 -0
- package/docs/api/reference/feature-draws.md +94 -0
- package/docs/api/reference/feature-effects.md +32 -0
- package/docs/api/reference/feature-instances.md +63 -0
- package/docs/api/reference/features.md +361 -0
- package/docs/api/reference/geometry.md +777 -0
- package/docs/api/reference/grass.md +131 -0
- package/docs/api/reference/impostors.md +277 -0
- package/docs/api/reference/input.md +121 -0
- package/docs/api/reference/lights.md +257 -0
- package/docs/api/reference/lines.md +84 -0
- package/docs/api/reference/materials.md +375 -0
- package/docs/api/reference/math.md +229 -0
- package/docs/api/reference/objects.md +103 -0
- package/docs/api/reference/particles.md +336 -0
- package/docs/api/reference/points.md +57 -0
- package/docs/api/reference/post.md +244 -0
- package/docs/api/reference/quality.md +209 -0
- package/docs/api/reference/raycast.md +94 -0
- package/docs/api/reference/render.md +238 -0
- package/docs/api/reference/scene.md +540 -0
- package/docs/api/reference/sketch.md +121 -0
- package/docs/api/reference/splats.md +214 -0
- package/docs/api/reference/sprites.md +71 -0
- package/docs/api/reference/tasks.md +92 -0
- package/docs/api/reference/terrain.md +160 -0
- package/docs/api/reference/textures.md +153 -0
- package/docs/api/reference/three-compat.md +60 -0
- package/docs/api/reference/time.md +25 -0
- package/docs/api/reference/ui.md +52 -0
- package/docs/api/reference/vertex-draws.md +55 -0
- package/docs/api/reference/water.md +359 -0
- package/docs/api/reference/wind.md +106 -0
- package/docs/api/render.md +497 -0
- package/docs/api/scene.md +595 -0
- package/docs/api/sketch.md +170 -0
- package/docs/api/splats.md +257 -0
- package/docs/api/sprites.md +185 -0
- package/docs/api/tasks.md +106 -0
- package/docs/api/terrain.md +130 -0
- package/docs/api/textures.md +272 -0
- package/docs/api/three-compat.md +102 -0
- package/docs/api/time.md +134 -0
- package/docs/api/ui.md +146 -0
- package/docs/api/vertex-draws.md +171 -0
- package/docs/api/water.md +303 -0
- package/docs/api/wind.md +375 -0
- package/docs/cli/null3d.md +528 -0
- package/docs/concepts/architecture.md +174 -0
- package/docs/concepts/assets.md +145 -0
- package/docs/concepts/backends.md +195 -0
- package/docs/concepts/color-management.md +145 -0
- package/docs/concepts/culling.md +227 -0
- package/docs/concepts/handles.md +93 -0
- package/docs/concepts/instances.md +285 -0
- package/docs/concepts/large-worlds.md +126 -0
- package/docs/concepts/lighting.md +592 -0
- package/docs/concepts/lod.md +254 -0
- package/docs/concepts/materials.md +128 -0
- package/docs/concepts/particle-buffer.md +201 -0
- package/docs/concepts/post-processing.md +442 -0
- package/docs/concepts/quality-preset-tables.md +91 -0
- package/docs/concepts/quality-presets.md +312 -0
- package/docs/concepts/render-graph.md +217 -0
- package/docs/concepts/render-layers.md +125 -0
- package/docs/concepts/shadows.md +466 -0
- package/docs/concepts/static-dynamic.md +113 -0
- package/docs/cookbook/index.md +664 -0
- package/docs/data/threejs-mapping.json +2118 -0
- package/docs/errors/E1101.md +23 -0
- package/docs/errors/E1102.md +23 -0
- package/docs/errors/E1103.md +23 -0
- package/docs/errors/E1104.md +23 -0
- package/docs/errors/E1105.md +23 -0
- package/docs/errors/E1106.md +23 -0
- package/docs/errors/E1107.md +23 -0
- package/docs/errors/E1108.md +23 -0
- package/docs/errors/E1109.md +23 -0
- package/docs/errors/E1110.md +23 -0
- package/docs/errors/E1111.md +23 -0
- package/docs/errors/E1112.md +23 -0
- package/docs/errors/E1203.md +23 -0
- package/docs/errors/E1204.md +23 -0
- package/docs/errors/E1205.md +23 -0
- package/docs/errors/E1206.md +23 -0
- package/docs/errors/E1207.md +23 -0
- package/docs/errors/E1208.md +23 -0
- package/docs/errors/E1209.md +23 -0
- package/docs/errors/E1213.md +23 -0
- package/docs/errors/E1214.md +23 -0
- package/docs/errors/E1215.md +23 -0
- package/docs/errors/E1216.md +23 -0
- package/docs/errors/E1217.md +23 -0
- package/docs/errors/E1218.md +23 -0
- package/docs/errors/E1219.md +23 -0
- package/docs/errors/E1220.md +23 -0
- package/docs/errors/E1221.md +23 -0
- package/docs/errors/E1222.md +23 -0
- package/docs/errors/E1223.md +23 -0
- package/docs/errors/E1224.md +23 -0
- package/docs/errors/E1225.md +23 -0
- package/docs/errors/E1301.md +23 -0
- package/docs/errors/E1302.md +23 -0
- package/docs/errors/E1303.md +23 -0
- package/docs/errors/E1304.md +23 -0
- package/docs/errors/E1305.md +23 -0
- package/docs/errors/E1306.md +23 -0
- package/docs/errors/E1401.md +23 -0
- package/docs/errors/E1402.md +23 -0
- package/docs/errors/E1403.md +23 -0
- package/docs/errors/E1404.md +23 -0
- package/docs/errors/E1405.md +23 -0
- package/docs/errors/E1406.md +23 -0
- package/docs/errors/E1407.md +23 -0
- package/docs/errors/E1408.md +23 -0
- package/docs/errors/E1409.md +23 -0
- package/docs/errors/E1410.md +23 -0
- package/docs/errors/E1411.md +23 -0
- package/docs/errors/E1412.md +23 -0
- package/docs/errors/E1413.md +23 -0
- package/docs/errors/E1414.md +23 -0
- package/docs/errors/E1415.md +23 -0
- package/docs/errors/E1416.md +23 -0
- package/docs/errors/E1417.md +23 -0
- package/docs/errors/E1418.md +23 -0
- package/docs/errors/E1419.md +23 -0
- package/docs/errors/E1420.md +23 -0
- package/docs/errors/E1421.md +23 -0
- package/docs/errors/E1422.md +23 -0
- package/docs/errors/E1423.md +23 -0
- package/docs/errors/E1424.md +23 -0
- package/docs/errors/E1425.md +23 -0
- package/docs/errors/E1426.md +23 -0
- package/docs/errors/E1430.md +23 -0
- package/docs/errors/E1431.md +23 -0
- package/docs/errors/E1432.md +23 -0
- package/docs/errors/E1433.md +23 -0
- package/docs/errors/E1434.md +23 -0
- package/docs/errors/E1435.md +23 -0
- package/docs/errors/E1436.md +23 -0
- package/docs/errors/E1437.md +23 -0
- package/docs/errors/E1501.md +23 -0
- package/docs/errors/E1502.md +23 -0
- package/docs/errors/E1503.md +23 -0
- package/docs/errors/E1504.md +23 -0
- package/docs/errors/E1505.md +23 -0
- package/docs/errors/E1506.md +23 -0
- package/docs/errors/index.md +92 -0
- package/docs/getting-started/cdn.md +219 -0
- package/docs/getting-started/first-scene.md +129 -0
- package/docs/getting-started/hosting.md +359 -0
- package/docs/getting-started/install.md +111 -0
- package/docs/getting-started/network-use.md +88 -0
- package/docs/getting-started/project-structure.md +69 -0
- package/docs/getting-started/third-party-notices.md +92 -0
- package/docs/guides/accessibility.md +96 -0
- package/docs/guides/add-ons.md +159 -0
- package/docs/guides/agents.md +66 -0
- package/docs/guides/assets-pipeline.md +504 -0
- package/docs/guides/audio.md +163 -0
- package/docs/guides/baked-light-data.md +176 -0
- package/docs/guides/car-paint.md +121 -0
- package/docs/guides/content-pages.md +234 -0
- package/docs/guides/custom-passes.md +585 -0
- package/docs/guides/custom-shaders.md +290 -0
- package/docs/guides/debugging.md +162 -0
- package/docs/guides/deploying.md +15 -0
- package/docs/guides/deterministic-simulation.md +226 -0
- package/docs/guides/first-use-shaders.md +57 -0
- package/docs/guides/lens-kit.md +134 -0
- package/docs/guides/loading-screens.md +218 -0
- package/docs/guides/multiple-views.md +83 -0
- package/docs/guides/performance.md +402 -0
- package/docs/guides/phones.md +127 -0
- package/docs/guides/physics.md +202 -0
- package/docs/guides/screens.md +123 -0
- package/docs/guides/testing.md +227 -0
- package/docs/guides/ui-overlays.md +182 -0
- package/docs/guides/video-textures.md +110 -0
- package/docs/index.md +45 -0
- package/docs/pages.md +239 -0
- package/docs/porting/react-three-fiber.md +15 -0
- package/docs/porting/threejs-loop-and-threads.md +15 -0
- package/docs/porting/threejs-mapping.md +295 -0
- package/docs/porting/threejs-materials.md +15 -0
- package/docs/porting/threejs-overview.md +15 -0
- package/docs/porting/threejs-postprocessing.md +256 -0
- package/docs/porting/threejs-shaders.md +15 -0
- package/docs/porting/threejs-unsupported.md +15 -0
- package/docs/porting/verification.md +15 -0
- package/docs/shaders/builtins.md +129 -0
- package/docs/shaders/library.md +1350 -0
- package/docs/shaders/surface-functions.md +625 -0
- package/docs/shaders/wgsl-rules.md +126 -0
- package/levels/pieces.d.ts +178 -0
- package/levels/pieces.js +759 -0
- package/levels/planner.d.ts +126 -0
- package/levels/planner.js +682 -0
- package/lib/debug/debug.d.ts +178 -0
- package/lib/debug/debug.js +4 -0
- package/lib/debug/draw.d.ts +137 -0
- package/lib/debug/draw.js +672 -0
- package/lib/debug/frame-target.d.ts +11 -0
- package/lib/debug/frame-target.js +31 -0
- package/lib/debug/overlay-look.d.ts +162 -0
- package/lib/debug/overlay-look.js +1365 -0
- package/lib/debug/overlay.d.ts +68 -0
- package/lib/debug/overlay.js +195 -0
- package/lib/debug/page-meters.d.ts +139 -0
- package/lib/debug/page-meters.js +267 -0
- package/lib/debug/sketch-debug.d.ts +41 -0
- package/lib/debug/sketch-debug.js +86 -0
- package/lib/debug/stats-options.d.ts +15 -0
- package/lib/debug/stats-options.js +3 -0
- package/lib/debug/stats-panel.d.ts +94 -0
- package/lib/debug/stats-panel.js +123 -0
- package/lib/debug/stats-text.d.ts +169 -0
- package/lib/debug/stats-text.js +126 -0
- package/lib/debug/stats.d.ts +196 -0
- package/lib/debug/stats.js +252 -0
- package/lib/debug/view-names.d.ts +15 -0
- package/lib/debug/view-names.js +22 -0
- package/lib/errors/checks.d.ts +24 -0
- package/lib/errors/checks.js +38 -0
- package/lib/errors/codes.d.ts +15 -0
- package/lib/errors/codes.js +483 -0
- package/lib/errors/core-failure.d.ts +19 -0
- package/lib/errors/core-failure.js +127 -0
- package/lib/errors/engine-error-core.d.ts +21 -0
- package/lib/errors/engine-error-core.js +39 -0
- package/lib/errors/engine-error.d.ts +38 -0
- package/lib/errors/engine-error.js +117 -0
- package/lib/errors/fixes.d.ts +88 -0
- package/lib/errors/fixes.js +85 -0
- package/lib/errors/message.d.ts +4 -0
- package/lib/errors/message.js +10 -0
- package/lib/generated/core.d.ts +657 -0
- package/lib/generated/core.js +659 -0
- package/lib/generated/gpu.d.ts +412 -0
- package/lib/generated/gpu.js +414 -0
- package/lib/generated/shader-features.d.ts +8 -0
- package/lib/generated/shader-permutations.d.ts +6 -0
- package/lib/generated/shader-permutations.js +9 -0
- package/lib/generated/shaders-environment-glsl.d.ts +11 -0
- package/lib/generated/shaders-environment-wgsl.d.ts +11 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-bump.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lines.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-area-lights-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-bump-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coat-sheen-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-coverage.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-cutout.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-decals-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-decals.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-displacement.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-hash-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-hash.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-moment-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-moment.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-morph-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-morph.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-motion.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-picking.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-probe-grid-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-probe-grid.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-row-values.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-skinning.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-sprites.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-subsurface-half.d.ts +3 -0
- package/lib/generated/shaders-glsl-combos-subsurface.d.ts +3 -0
- package/lib/generated/shaders-probe-glsl.d.ts +11 -0
- package/lib/generated/shaders-probe-wgsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-env-glsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-env-wgsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-panorama-glsl.d.ts +11 -0
- package/lib/generated/shaders-sky-volume-panorama-wgsl.d.ts +11 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-bump-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-bump.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-coverage.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-displacement.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-hash-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-hash.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-instance-index.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lines.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-moment-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-moment.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-row-values.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-skinning.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-translucency.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-transmission.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-area-lights-and-weighted.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-bump-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-bump.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coat-sheen-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coat-sheen.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coverage-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-coverage.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-cutout.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-decals-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-decals.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-displacement-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-displacement.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-hash-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-hash.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-instance-index-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-instance-index.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-lod-fade-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-lod-fade.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-moment-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-moment.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-motion.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-picking.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-probe-grid-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-probe-grid.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-row-values-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-row-values.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-skinning-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-skinning.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-sprites.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-subsurface-half.d.ts +3 -0
- package/lib/generated/shaders-wgsl-combos-subsurface.d.ts +3 -0
- package/lib/generated/shaders.d.ts +1146 -0
- package/lib/gpu/canvas-release.d.ts +20 -0
- package/lib/gpu/canvas-release.js +67 -0
- package/lib/gpu/completion.d.ts +35 -0
- package/lib/gpu/completion.js +256 -0
- package/lib/gpu/device-shaders.d.ts +69 -0
- package/lib/gpu/device-shaders.js +177 -0
- package/lib/gpu/effect-join.d.ts +83 -0
- package/lib/gpu/effect-join.js +134 -0
- package/lib/gpu/effect-joiner.d.ts +14 -0
- package/lib/gpu/effect-joiner.js +165 -0
- package/lib/gpu/environment-steps.d.ts +135 -0
- package/lib/gpu/environment-steps.js +210 -0
- package/lib/gpu/environment-words.d.ts +14 -0
- package/lib/gpu/environment-words.js +19 -0
- package/lib/gpu/environment.d.ts +4 -0
- package/lib/gpu/environment.js +8 -0
- package/lib/gpu/float-bits.d.ts +2 -0
- package/lib/gpu/float-bits.js +9 -0
- package/lib/gpu/line-vertices.d.ts +1 -0
- package/lib/gpu/line-vertices.js +14 -0
- package/lib/gpu/memory.d.ts +19 -0
- package/lib/gpu/memory.js +50 -0
- package/lib/gpu/particle-records.d.ts +1 -0
- package/lib/gpu/particle-records.js +15 -0
- package/lib/gpu/probe-steps.d.ts +22 -0
- package/lib/gpu/probe-steps.js +43 -0
- package/lib/gpu/readback.d.ts +32 -0
- package/lib/gpu/readback.js +163 -0
- package/lib/gpu/variants.d.ts +16 -0
- package/lib/gpu/variants.js +67 -0
- package/lib/gpu/vertex-format.d.ts +46 -0
- package/lib/gpu/vertex-format.js +111 -0
- package/lib/gpu/webgl2/backend.d.ts +653 -0
- package/lib/gpu/webgl2/backend.js +2746 -0
- package/lib/gpu/webgl2/call-timing.d.ts +34 -0
- package/lib/gpu/webgl2/call-timing.js +143 -0
- package/lib/gpu/webgl2/context.d.ts +31 -0
- package/lib/gpu/webgl2/context.js +111 -0
- package/lib/gpu/webgl2/depth.d.ts +25 -0
- package/lib/gpu/webgl2/depth.js +30 -0
- package/lib/gpu/webgl2/environment.d.ts +65 -0
- package/lib/gpu/webgl2/environment.js +572 -0
- package/lib/gpu/webgl2/gpu-timer.d.ts +25 -0
- package/lib/gpu/webgl2/gpu-timer.js +93 -0
- package/lib/gpu/webgl2/probes.d.ts +38 -0
- package/lib/gpu/webgl2/probes.js +117 -0
- package/lib/gpu/webgl2/programs.d.ts +220 -0
- package/lib/gpu/webgl2/programs.js +484 -0
- package/lib/gpu/webgpu/backend.d.ts +373 -0
- package/lib/gpu/webgpu/backend.js +1565 -0
- package/lib/gpu/webgpu/buffer-reads.d.ts +42 -0
- package/lib/gpu/webgpu/buffer-reads.js +95 -0
- package/lib/gpu/webgpu/culled-counts.d.ts +79 -0
- package/lib/gpu/webgpu/culled-counts.js +259 -0
- package/lib/gpu/webgpu/draw-path-probe.d.ts +37 -0
- package/lib/gpu/webgpu/draw-path-probe.js +187 -0
- package/lib/gpu/webgpu/environment.d.ts +36 -0
- package/lib/gpu/webgpu/environment.js +735 -0
- package/lib/gpu/webgpu/first-pass.d.ts +13 -0
- package/lib/gpu/webgpu/first-pass.js +61 -0
- package/lib/gpu/webgpu/gpu-timer.d.ts +67 -0
- package/lib/gpu/webgpu/gpu-timer.js +328 -0
- package/lib/gpu/webgpu/indirect-arguments.d.ts +42 -0
- package/lib/gpu/webgpu/indirect-arguments.js +156 -0
- package/lib/gpu/webgpu/pipelines.d.ts +251 -0
- package/lib/gpu/webgpu/pipelines.js +1999 -0
- package/lib/gpu/webgpu/probes.d.ts +27 -0
- package/lib/gpu/webgpu/probes.js +190 -0
- package/lib/gpu/webgpu/reusable.d.ts +74 -0
- package/lib/gpu/webgpu/reusable.js +212 -0
- package/lib/gpu/webgpu/staging.d.ts +79 -0
- package/lib/gpu/webgpu/staging.js +238 -0
- package/lib/gpu/webgpu/upload-routes.d.ts +55 -0
- package/lib/gpu/webgpu/upload-routes.js +128 -0
- package/lib/index.d.ts +119 -0
- package/lib/index.js +53 -0
- package/lib/math/color.d.ts +18 -0
- package/lib/math/color.js +71 -0
- package/lib/math/create-math.d.ts +101 -0
- package/lib/math/create-math.js +207 -0
- package/lib/math/hex.d.ts +8 -0
- package/lib/math/hex.js +38 -0
- package/lib/math/index.d.ts +2 -0
- package/lib/math/index.js +11 -0
- package/lib/math/mat4.d.ts +28 -0
- package/lib/math/mat4.js +212 -0
- package/lib/math/math.d.ts +16 -0
- package/lib/math/math.js +42 -0
- package/lib/math/namespaces/math.d.ts +7 -0
- package/lib/math/namespaces/math.js +14 -0
- package/lib/math/namespaces/quat.d.ts +20 -0
- package/lib/math/namespaces/quat.js +30 -0
- package/lib/math/namespaces/vec3.d.ts +4 -0
- package/lib/math/namespaces/vec3.js +8 -0
- package/lib/math/quat.d.ts +40 -0
- package/lib/math/quat.js +228 -0
- package/lib/math/random.d.ts +17 -0
- package/lib/math/random.js +58 -0
- package/lib/math/types.d.ts +43 -0
- package/lib/math/types.js +4 -0
- package/lib/math/vec3.d.ts +46 -0
- package/lib/math/vec3.js +190 -0
- package/lib/page/abortable.d.ts +2 -0
- package/lib/page/abortable.js +19 -0
- package/lib/page/browser-check.d.ts +8 -0
- package/lib/page/browser-check.js +23 -0
- package/lib/page/canvas-watch.d.ts +34 -0
- package/lib/page/canvas-watch.js +141 -0
- package/lib/page/capabilities.d.ts +201 -0
- package/lib/page/capabilities.js +395 -0
- package/lib/page/check-store.d.ts +42 -0
- package/lib/page/check-store.js +146 -0
- package/lib/page/display.d.ts +2 -0
- package/lib/page/display.js +25 -0
- package/lib/page/early-core.d.ts +1 -0
- package/lib/page/early-core.js +23 -0
- package/lib/page/engine.d.ts +865 -0
- package/lib/page/engine.js +2136 -0
- package/lib/page/frame-stats.d.ts +369 -0
- package/lib/page/frame-stats.js +374 -0
- package/lib/page/gamepads.d.ts +37 -0
- package/lib/page/gamepads.js +123 -0
- package/lib/page/held-input.d.ts +19 -0
- package/lib/page/held-input.js +54 -0
- package/lib/page/hold.d.ts +186 -0
- package/lib/page/hold.js +49 -0
- package/lib/page/input-ring.d.ts +13 -0
- package/lib/page/input-ring.js +25 -0
- package/lib/page/input.d.ts +6 -0
- package/lib/page/input.js +159 -0
- package/lib/page/isolation-check.d.ts +14 -0
- package/lib/page/isolation-check.js +21 -0
- package/lib/page/label-loop.d.ts +76 -0
- package/lib/page/label-loop.js +410 -0
- package/lib/page/labels.d.ts +56 -0
- package/lib/page/labels.js +102 -0
- package/lib/page/limits.d.ts +321 -0
- package/lib/page/limits.js +323 -0
- package/lib/page/loader.d.ts +78 -0
- package/lib/page/loader.js +149 -0
- package/lib/page/main-thread.d.ts +10 -0
- package/lib/page/main-thread.js +41 -0
- package/lib/page/memory-pool.d.ts +26 -0
- package/lib/page/memory-pool.js +69 -0
- package/lib/page/ownership.d.ts +65 -0
- package/lib/page/ownership.js +166 -0
- package/lib/page/permutation-recording.d.ts +26 -0
- package/lib/page/permutation-recording.js +32 -0
- package/lib/page/pointer-lock.d.ts +14 -0
- package/lib/page/pointer-lock.js +60 -0
- package/lib/page/preferences.d.ts +2 -0
- package/lib/page/preferences.js +11 -0
- package/lib/page/record-button.d.ts +5 -0
- package/lib/page/record-button.js +60 -0
- package/lib/page/start-marker.d.ts +44 -0
- package/lib/page/start-marker.js +116 -0
- package/lib/page/stats-switch.d.ts +16 -0
- package/lib/page/stats-switch.js +38 -0
- package/lib/page/stop-jobs.d.ts +37 -0
- package/lib/page/stop-jobs.js +87 -0
- package/lib/page/switches.d.ts +317 -0
- package/lib/page/switches.js +142 -0
- package/lib/page/videos.d.ts +70 -0
- package/lib/page/videos.js +244 -0
- package/lib/quality/budget.d.ts +14 -0
- package/lib/quality/budget.js +25 -0
- package/lib/quality/check.d.ts +98 -0
- package/lib/quality/check.js +70 -0
- package/lib/quality/chooser.d.ts +92 -0
- package/lib/quality/chooser.js +100 -0
- package/lib/quality/device-hints.d.ts +8 -0
- package/lib/quality/device-hints.js +18 -0
- package/lib/quality/governor.d.ts +479 -0
- package/lib/quality/governor.js +1063 -0
- package/lib/quality/preset-docs.d.ts +387 -0
- package/lib/quality/preset-docs.js +176 -0
- package/lib/quality/presets.d.ts +744 -0
- package/lib/quality/presets.js +586 -0
- package/lib/render/direct-loop.d.ts +4 -0
- package/lib/render/direct-loop.js +52 -0
- package/lib/render/draw.d.ts +65 -0
- package/lib/render/draw.js +101 -0
- package/lib/render/load-draw.d.ts +10 -0
- package/lib/render/load-draw.js +16 -0
- package/lib/render/loop.d.ts +241 -0
- package/lib/render/loop.js +566 -0
- package/lib/render/loss.d.ts +35 -0
- package/lib/render/loss.js +99 -0
- package/lib/render/pacer.d.ts +24 -0
- package/lib/render/pacer.js +51 -0
- package/lib/render/recovery.d.ts +62 -0
- package/lib/render/recovery.js +120 -0
- package/lib/render/refresh.d.ts +38 -0
- package/lib/render/refresh.js +111 -0
- package/lib/render/renderer.d.ts +116 -0
- package/lib/render/renderer.js +156 -0
- package/lib/render/scene-renderer.d.ts +117 -0
- package/lib/render/scene-renderer.js +192 -0
- package/lib/render/shader-salt.d.ts +5 -0
- package/lib/render/shader-salt.js +31 -0
- package/lib/render/webgl2-renderers.d.ts +11 -0
- package/lib/render/webgl2-renderers.js +224 -0
- package/lib/render/webgpu-renderers.d.ts +10 -0
- package/lib/render/webgpu-renderers.js +253 -0
- package/lib/scene/addon-debug-views.d.ts +30 -0
- package/lib/scene/addon-debug-views.js +63 -0
- package/lib/scene/animation.d.ts +551 -0
- package/lib/scene/animation.js +1428 -0
- package/lib/scene/area-light-tables.d.ts +32 -0
- package/lib/scene/area-light-tables.js +89 -0
- package/lib/scene/assets.d.ts +400 -0
- package/lib/scene/assets.js +869 -0
- package/lib/scene/background.d.ts +242 -0
- package/lib/scene/background.js +467 -0
- package/lib/scene/baked-light.d.ts +60 -0
- package/lib/scene/baked-light.js +300 -0
- package/lib/scene/builtin-environments.d.ts +36 -0
- package/lib/scene/builtin-environments.js +43 -0
- package/lib/scene/chunk-rows.d.ts +81 -0
- package/lib/scene/chunk-rows.js +146 -0
- package/lib/scene/color.d.ts +22 -0
- package/lib/scene/color.js +45 -0
- package/lib/scene/derived-cache.d.ts +139 -0
- package/lib/scene/derived-cache.js +547 -0
- package/lib/scene/effects.d.ts +193 -0
- package/lib/scene/effects.js +476 -0
- package/lib/scene/environment-file.d.ts +22 -0
- package/lib/scene/environment-file.js +81 -0
- package/lib/scene/environment.d.ts +57 -0
- package/lib/scene/environment.js +131 -0
- package/lib/scene/fake-call-values.d.ts +8 -0
- package/lib/scene/fake-call-values.js +51 -0
- package/lib/scene/feature-draws.d.ts +169 -0
- package/lib/scene/feature-draws.js +269 -0
- package/lib/scene/feature-effects.d.ts +42 -0
- package/lib/scene/feature-effects.js +155 -0
- package/lib/scene/feature-host.d.ts +129 -0
- package/lib/scene/feature-host.js +299 -0
- package/lib/scene/feature-instances.d.ts +130 -0
- package/lib/scene/feature-instances.js +326 -0
- package/lib/scene/features.d.ts +412 -0
- package/lib/scene/features.js +550 -0
- package/lib/scene/file-limits.d.ts +70 -0
- package/lib/scene/file-limits.js +224 -0
- package/lib/scene/fog.d.ts +94 -0
- package/lib/scene/fog.js +142 -0
- package/lib/scene/frame-cameras.d.ts +156 -0
- package/lib/scene/frame-cameras.js +434 -0
- package/lib/scene/gltf-animation.d.ts +129 -0
- package/lib/scene/gltf-animation.js +887 -0
- package/lib/scene/gltf-draco.d.ts +9 -0
- package/lib/scene/gltf-draco.js +224 -0
- package/lib/scene/gltf-extensions.d.ts +31 -0
- package/lib/scene/gltf-extensions.js +92 -0
- package/lib/scene/gltf-json.d.ts +49 -0
- package/lib/scene/gltf-json.js +94 -0
- package/lib/scene/gltf-math.d.ts +16 -0
- package/lib/scene/gltf-math.js +129 -0
- package/lib/scene/gltf-meshopt.d.ts +3 -0
- package/lib/scene/gltf-meshopt.js +48 -0
- package/lib/scene/gltf-parse.d.ts +600 -0
- package/lib/scene/gltf-parse.js +1854 -0
- package/lib/scene/gltf.d.ts +159 -0
- package/lib/scene/gltf.js +1560 -0
- package/lib/scene/grade-table.d.ts +9 -0
- package/lib/scene/grade-table.js +23 -0
- package/lib/scene/grade-task.d.ts +12 -0
- package/lib/scene/grade-task.js +11 -0
- package/lib/scene/grading.d.ts +110 -0
- package/lib/scene/grading.js +142 -0
- package/lib/scene/half-float.d.ts +4 -0
- package/lib/scene/half-float.js +42 -0
- package/lib/scene/ktx2-cache.d.ts +32 -0
- package/lib/scene/ktx2-cache.js +62 -0
- package/lib/scene/ktx2-file.d.ts +57 -0
- package/lib/scene/ktx2-file.js +207 -0
- package/lib/scene/ktx2-transcode.d.ts +15 -0
- package/lib/scene/ktx2-transcode.js +94 -0
- package/lib/scene/ktx2.d.ts +34 -0
- package/lib/scene/ktx2.js +178 -0
- package/lib/scene/lens.d.ts +61 -0
- package/lib/scene/lens.js +101 -0
- package/lib/scene/level-meshopt.d.ts +20 -0
- package/lib/scene/level-meshopt.js +122 -0
- package/lib/scene/level-pieces.d.ts +24 -0
- package/lib/scene/level-pieces.js +138 -0
- package/lib/scene/level-words.d.ts +19 -0
- package/lib/scene/level-words.js +34 -0
- package/lib/scene/levels-task.d.ts +51 -0
- package/lib/scene/levels-task.js +132 -0
- package/lib/scene/light-images.d.ts +36 -0
- package/lib/scene/light-images.js +88 -0
- package/lib/scene/light-probes.d.ts +240 -0
- package/lib/scene/light-probes.js +644 -0
- package/lib/scene/lines.d.ts +192 -0
- package/lib/scene/lines.js +257 -0
- package/lib/scene/lut-files.d.ts +41 -0
- package/lib/scene/lut-files.js +399 -0
- package/lib/scene/lut.d.ts +56 -0
- package/lib/scene/lut.js +48 -0
- package/lib/scene/memory.d.ts +72 -0
- package/lib/scene/memory.js +159 -0
- package/lib/scene/mesh-arrays.d.ts +110 -0
- package/lib/scene/mesh-arrays.js +701 -0
- package/lib/scene/mesh-levels.d.ts +10 -0
- package/lib/scene/mesh-levels.js +52 -0
- package/lib/scene/namespaces.d.ts +125 -0
- package/lib/scene/namespaces.js +313 -0
- package/lib/scene/panorama-files.d.ts +71 -0
- package/lib/scene/panorama-files.js +1103 -0
- package/lib/scene/panorama.d.ts +23 -0
- package/lib/scene/panorama.js +108 -0
- package/lib/scene/particles.d.ts +452 -0
- package/lib/scene/particles.js +814 -0
- package/lib/scene/pass-reads.d.ts +70 -0
- package/lib/scene/pass-reads.js +220 -0
- package/lib/scene/picks.d.ts +69 -0
- package/lib/scene/picks.js +208 -0
- package/lib/scene/pointer-events.d.ts +205 -0
- package/lib/scene/pointer-events.js +500 -0
- package/lib/scene/post.d.ts +572 -0
- package/lib/scene/post.js +925 -0
- package/lib/scene/prefab.d.ts +110 -0
- package/lib/scene/prefab.js +167 -0
- package/lib/scene/probes.d.ts +71 -0
- package/lib/scene/probes.js +169 -0
- package/lib/scene/property-animation.d.ts +160 -0
- package/lib/scene/property-animation.js +276 -0
- package/lib/scene/queries.d.ts +182 -0
- package/lib/scene/queries.js +393 -0
- package/lib/scene/render.d.ts +487 -0
- package/lib/scene/render.js +829 -0
- package/lib/scene/resources.d.ts +1627 -0
- package/lib/scene/resources.js +2745 -0
- package/lib/scene/rotation.d.ts +6 -0
- package/lib/scene/rotation.js +12 -0
- package/lib/scene/scene.d.ts +1827 -0
- package/lib/scene/scene.js +4582 -0
- package/lib/scene/shader-preloads.d.ts +40 -0
- package/lib/scene/shader-preloads.js +78 -0
- package/lib/scene/shader-templates.d.ts +60 -0
- package/lib/scene/shader-templates.js +156 -0
- package/lib/scene/sprites.d.ts +265 -0
- package/lib/scene/sprites.js +293 -0
- package/lib/scene/stale-calls-scenario.d.ts +20 -0
- package/lib/scene/stale-calls-scenario.js +175 -0
- package/lib/scene/textures.d.ts +324 -0
- package/lib/scene/textures.js +954 -0
- package/lib/scene/time-of-day.d.ts +146 -0
- package/lib/scene/time-of-day.js +645 -0
- package/lib/scene/unmarked-writes.d.ts +118 -0
- package/lib/scene/unmarked-writes.js +283 -0
- package/lib/scene/unread-extensions-scenario.d.ts +6 -0
- package/lib/scene/unread-extensions-scenario.js +26 -0
- package/lib/scene/vertex-draws.d.ts +81 -0
- package/lib/scene/vertex-draws.js +83 -0
- package/lib/scene/wgsl-uniforms.d.ts +167 -0
- package/lib/scene/wgsl-uniforms.js +12 -0
- package/lib/shared/await-later.d.ts +5 -0
- package/lib/shared/await-later.js +10 -0
- package/lib/shared/control.d.ts +94 -0
- package/lib/shared/control.js +150 -0
- package/lib/shared/core-sources.d.ts +2 -0
- package/lib/shared/core-sources.js +7 -0
- package/lib/shared/core.d.ts +1249 -0
- package/lib/shared/core.js +380 -0
- package/lib/shared/counter.d.ts +52 -0
- package/lib/shared/counter.js +55 -0
- package/lib/shared/dev.d.ts +8 -0
- package/lib/shared/dev.js +13 -0
- package/lib/shared/feature-stats.d.ts +16 -0
- package/lib/shared/feature-stats.js +27 -0
- package/lib/shared/frame-image.d.ts +13 -0
- package/lib/shared/frame-image.js +32 -0
- package/lib/shared/gpu-clock.d.ts +14 -0
- package/lib/shared/gpu-clock.js +38 -0
- package/lib/shared/gpu-counter.d.ts +12 -0
- package/lib/shared/gpu-counter.js +15 -0
- package/lib/shared/gpu-scope.d.ts +14 -0
- package/lib/shared/gpu-scope.js +104 -0
- package/lib/shared/helper-workers.d.ts +4 -0
- package/lib/shared/helper-workers.js +23 -0
- package/lib/shared/images.d.ts +255 -0
- package/lib/shared/images.js +450 -0
- package/lib/shared/key-codes.d.ts +2 -0
- package/lib/shared/key-codes.js +69 -0
- package/lib/shared/labels.d.ts +94 -0
- package/lib/shared/labels.js +172 -0
- package/lib/shared/memory-area.d.ts +6 -0
- package/lib/shared/memory-area.js +21 -0
- package/lib/shared/memory-figure.d.ts +14 -0
- package/lib/shared/memory-figure.js +18 -0
- package/lib/shared/memory-views.d.ts +48 -0
- package/lib/shared/memory-views.js +90 -0
- package/lib/shared/metrics.d.ts +315 -0
- package/lib/shared/metrics.js +738 -0
- package/lib/shared/page-measurement.d.ts +9 -0
- package/lib/shared/page-measurement.js +37 -0
- package/lib/shared/phase.d.ts +17 -0
- package/lib/shared/phase.js +20 -0
- package/lib/shared/policy.d.ts +20 -0
- package/lib/shared/policy.js +46 -0
- package/lib/shared/recording.d.ts +100 -0
- package/lib/shared/recording.js +378 -0
- package/lib/shared/role.d.ts +10 -0
- package/lib/shared/role.js +13 -0
- package/lib/shared/run-task.d.ts +39 -0
- package/lib/shared/run-task.js +63 -0
- package/lib/shared/slot.d.ts +218 -0
- package/lib/shared/slot.js +221 -0
- package/lib/shared/software.d.ts +24 -0
- package/lib/shared/software.js +22 -0
- package/lib/shared/stats.d.ts +62 -0
- package/lib/shared/stats.js +86 -0
- package/lib/shared/task-failure.d.ts +24 -0
- package/lib/shared/task-failure.js +36 -0
- package/lib/shared/task-host.d.ts +42 -0
- package/lib/shared/task-host.js +60 -0
- package/lib/shared/task-load-error.d.ts +10 -0
- package/lib/shared/task-load-error.js +13 -0
- package/lib/shared/task-modules.d.ts +2 -0
- package/lib/shared/task-modules.js +8 -0
- package/lib/shared/task-pending.d.ts +12 -0
- package/lib/shared/task-pending.js +41 -0
- package/lib/shared/tasks.d.ts +54 -0
- package/lib/shared/tasks.js +379 -0
- package/lib/shared/tier.d.ts +7 -0
- package/lib/shared/tier.js +3 -0
- package/lib/shared/version.d.ts +56 -0
- package/lib/shared/version.js +85 -0
- package/lib/shared/videos.d.ts +15 -0
- package/lib/shared/videos.js +11 -0
- package/lib/shared/wake.d.ts +38 -0
- package/lib/shared/wake.js +76 -0
- package/lib/shared/wasm-limits.d.ts +13 -0
- package/lib/shared/wasm-limits.js +75 -0
- package/lib/shared/wasm.d.ts +26 -0
- package/lib/shared/wasm.js +128 -0
- package/lib/shared/webkit.d.ts +33 -0
- package/lib/shared/webkit.js +59 -0
- package/lib/shared/wgsl-updates.d.ts +9 -0
- package/lib/shared/wgsl-updates.js +8 -0
- package/lib/shared/worker-start.d.ts +49 -0
- package/lib/shared/worker-start.js +159 -0
- package/lib/sketch/clock.d.ts +61 -0
- package/lib/sketch/clock.js +98 -0
- package/lib/sketch/define-sketch.d.ts +234 -0
- package/lib/sketch/define-sketch.js +103 -0
- package/lib/sketch/input-off-scenario.d.ts +7 -0
- package/lib/sketch/input-off-scenario.js +24 -0
- package/lib/sketch/input-off.d.ts +16 -0
- package/lib/sketch/input-off.js +38 -0
- package/lib/sketch/input.d.ts +243 -0
- package/lib/sketch/input.js +554 -0
- package/lib/sketch/preset-check.d.ts +28 -0
- package/lib/sketch/preset-check.js +95 -0
- package/lib/sketch/quality.d.ts +334 -0
- package/lib/sketch/quality.js +314 -0
- package/lib/sketch/random.d.ts +13 -0
- package/lib/sketch/random.js +25 -0
- package/lib/sketch/runner.d.ts +507 -0
- package/lib/sketch/runner.js +1826 -0
- package/lib/sketch/ui.d.ts +97 -0
- package/lib/sketch/ui.js +391 -0
- package/lib/stats.d.ts +4 -0
- package/lib/stats.js +8 -0
- package/lib/workers/drawing-host.d.ts +24 -0
- package/lib/workers/drawing-host.js +48 -0
- package/lib/workers/gltf-worker.d.ts +35 -0
- package/lib/workers/gltf-worker.js +210 -0
- package/lib/workers/job-worker.d.ts +1 -0
- package/lib/workers/job-worker.js +102 -0
- package/lib/workers/panorama-worker.d.ts +15 -0
- package/lib/workers/panorama-worker.js +21 -0
- package/lib/workers/probe-worker.d.ts +29 -0
- package/lib/workers/probe-worker.js +49 -0
- package/lib/workers/protocol.d.ts +329 -0
- package/lib/workers/protocol.js +53 -0
- package/lib/workers/render-worker.d.ts +1 -0
- package/lib/workers/render-worker.js +82 -0
- package/lib/workers/sketch-worker.d.ts +1 -0
- package/lib/workers/sketch-worker.js +206 -0
- package/lib/workers/task-worker.d.ts +1 -0
- package/lib/workers/task-worker.js +5 -0
- package/lib/workers/tasks.d.ts +65 -0
- package/lib/workers/tasks.js +85 -0
- package/package.json +106 -5
- package/vendor/basis/LICENSE +201 -0
- package/vendor/basis/LICENSE-zstd +30 -0
- package/vendor/basis/NOTICE +15 -0
- package/vendor/basis/basis_transcoder.d.mts +36 -0
- package/vendor/basis/basis_transcoder.mjs +2 -0
- package/vendor/basis/basis_transcoder.wasm +0 -0
- package/vendor/draco/LICENSE +252 -0
- package/vendor/draco/draco_decoder_gltf.wasm +0 -0
- package/vendor/draco/draco_wasm_wrapper_gltf.d.ts +71 -0
- package/vendor/draco/draco_wasm_wrapper_gltf.js +116 -0
- package/vendor/ltc/LICENSE +31 -0
- package/vendor/ltc/area-light-tables.bin +0 -0
- package/vendor/meshopt/LICENSE.md +21 -0
- package/vendor/meshopt/meshopt_clusterizer.wasm +0 -0
- package/vendor/meshopt/meshopt_decoder.wasm +0 -0
- package/vendor/meshopt/meshopt_encoder.wasm +0 -0
- package/vendor/meshopt/meshopt_simplifier.wasm +0 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1063 @@
|
|
|
1
|
+
// The frame-budget governor. When frames take too long, it lowers the live settings one step at a
|
|
2
|
+
// time, in a fixed order: a step of a sketch's budgets and a step of the render scale in turn, a
|
|
3
|
+
// budget's step first, then the threshold of the levels of detail, then how often far shadow
|
|
4
|
+
// cascades draw, then the shadow filter, then bloom's base, then ambient occlusion's scale and then
|
|
5
|
+
// its removal, then the steps of the sun's contact shadows, then the update interval of far
|
|
6
|
+
// characters' poses, then the volumetric fog's slices. Once the render scale is at its floor, the
|
|
7
|
+
// budgets' remaining steps come before the threshold's. When the frames have time to spare again,
|
|
8
|
+
// it raises them in the reverse order. It never changes a setting that is fixed while a preset
|
|
9
|
+
// runs.
|
|
10
|
+
//
|
|
11
|
+
// A detail step happens only while the scene draws a mesh with levels of detail: each doubles the
|
|
12
|
+
// threshold in pixels under which a coarser level draws, up to four times the setting's. A level's
|
|
13
|
+
// error is at most the threshold, so two pixels draw much as one does, while far objects lose
|
|
14
|
+
// most of their vertices.
|
|
15
|
+
//
|
|
16
|
+
// A sketch's own systems take part through their budgets, which share one scale from 0 to 1. While
|
|
17
|
+
// a budget can go lower, its steps alternate with the render scale's, a budget's step first, so a
|
|
18
|
+
// sketch's system scales down before the render scale reaches its floor. Once the render scale is at
|
|
19
|
+
// its floor, the budgets' remaining steps come before the detail and shadow steps.
|
|
20
|
+
//
|
|
21
|
+
// The render scale is a part of the canvas's width and height, in whole thousandths, which the core
|
|
22
|
+
// turns into an exact size in pixels. Scene passes draw into that corner of targets the size of the
|
|
23
|
+
// canvas, and the final pass scales it up to the canvas, so a new scale makes no GPU object. The
|
|
24
|
+
// shadow steps are numbers in a uniform and a schedule, bloom's base and ambient occlusion's
|
|
25
|
+
// scale corners of the same targets, and the contact shadows' steps a number in a uniform, so they
|
|
26
|
+
// make none either. Ambient occlusion's removal adds or removes its passes, as a scale of 0 does
|
|
27
|
+
// through `quality.set`, so the frame waits for their pipelines.
|
|
28
|
+
//
|
|
29
|
+
// The governor judges the frames in windows of a quarter second. It takes a step down when the
|
|
30
|
+
// frames of the last second, on average, missed the line at which the benchmark reports count a
|
|
31
|
+
// second as holding the target rate. It takes a step up only after several seconds in which the
|
|
32
|
+
// frames kept their rate on average and the GPU finished each within about one frame. After each
|
|
33
|
+
// step it waits for the frames of the new setting before it judges again. A step up is on trial for
|
|
34
|
+
// a while, and a step down from its setting in that time doubles the wait before the next step up
|
|
35
|
+
// into that setting. Each setting keeps its own wait, so the settings settle below the point where
|
|
36
|
+
// the frames fall behind instead of swinging across it, while steps up into other settings stay
|
|
37
|
+
// quick. A step down is on trial too: when the first second judged after it came clearly slower
|
|
38
|
+
// than the second that caused it, or no second could be judged in the time a trial lasts, the
|
|
39
|
+
// governor takes the step back and keeps that setting closed for a wait that doubles with each
|
|
40
|
+
// failure. A step that changes nothing stays. A gap between frames is a pause, and starts the
|
|
41
|
+
// windows again, unless a frame was drawing through it: a frame that the GPU or the thread that
|
|
42
|
+
// draws held for `GAP_MS` or more counts as a frame of its length and fills the windows it spans,
|
|
43
|
+
// so a page that draws a few frames a second is judged like any other. A device that draws on the
|
|
44
|
+
// CPU keeps the whole render scale once a step below it failed: its two-step upscale costs about
|
|
45
|
+
// what the smaller scene saves (D-237). A shadow step happens only where the scene has a light
|
|
46
|
+
// that casts shadows, and only where the step changes what the frame draws: the far cascades
|
|
47
|
+
// need a directional light with two cascades or more, and the filter any light that casts shadows.
|
|
48
|
+
// The far cascades' step also needs far cascades that draw in every frame while moving casters
|
|
49
|
+
// touch them: where they keep their turns instead, a longer interval would leave moving shadows
|
|
50
|
+
// further behind their casters. A bloom step happens only while the sketch has bloom on, above the
|
|
51
|
+
// smallest base: it halves the base, and the chain drops its narrowest level, so the glow keeps its
|
|
52
|
+
// size. Ambient occlusion's steps happen only while it draws, and only after the render scale, the
|
|
53
|
+
// budgets, the detail and shadow steps and bloom's base: its target's scale falls to the lowest
|
|
54
|
+
// above none, then it draws none, so a device that still misses its budget gives up the effect's
|
|
55
|
+
// whole share last. The contact shadows' step happens only while the main directional light casts
|
|
56
|
+
// shadows and their march takes more than the fewest steps: it takes the fewest. The volumetric
|
|
57
|
+
// fog's step happens only while it draws: each frame draws half its grid's slices, into the same
|
|
58
|
+
// textures.
|
|
59
|
+
//
|
|
60
|
+
// The frame loop calls it once per frame, and it allocates nothing. The governor judges only a few
|
|
61
|
+
// times a second, so the browser may never optimize it. Unoptimized code makes a number object for
|
|
62
|
+
// each fraction, for each number it reads from a typed array of floats, and for each whole number
|
|
63
|
+
// past 31 bits. So the governor works in small whole numbers alone, in typed arrays of 32-bit
|
|
64
|
+
// integers: frame times in whole microseconds, and clock times in whole ms from an origin that the
|
|
65
|
+
// frame loop moves forward while the page runs.
|
|
66
|
+
import { SHADOW_CASTERS_CASCADE_MASK, SHADOW_CASTERS_TILES } from '../generated/core.js';
|
|
67
|
+
import { RefreshRate, RingSums, SUM_BUSY_MS, SUM_INTERVAL_MS, SUM_LONGEST_BUSY_MS, SUM_RECORDS, } from '../shared/metrics.js';
|
|
68
|
+
import * as Role from '../shared/role.js';
|
|
69
|
+
import { HELD_PERCENT } from '../shared/stats.js';
|
|
70
|
+
import { BUDGET_STEPS, FULL_SCALE, SCALE_STEP, thousandths } from './budget.js';
|
|
71
|
+
import { CHECK_MAX_FPS, checkTargetFps } from './check.js';
|
|
72
|
+
import { QUALITY_SETTINGS } from './presets.js';
|
|
73
|
+
/** The longest interval between two draws of a far shadow cascade, in frames. */
|
|
74
|
+
export const LONGEST_FAR_INTERVAL = QUALITY_SETTINGS.farCascadeInterval.values.max;
|
|
75
|
+
/** The longest interval between two updates of a far character's pose, in frames. */
|
|
76
|
+
export const LONGEST_ANIMATION_INTERVAL = QUALITY_SETTINGS.farAnimationInterval.values.max;
|
|
77
|
+
/** The lightest shadow filter, in texels on each side. */
|
|
78
|
+
export const LIGHTEST_FILTER = QUALITY_SETTINGS.shadowFilter.values[0];
|
|
79
|
+
/** The detail steps: each doubles the threshold of the levels of detail. */
|
|
80
|
+
export const DETAIL_STEPS = 2;
|
|
81
|
+
/** The smallest base of bloom's chain, in texels on the short side, which its step stops above. */
|
|
82
|
+
export const SMALLEST_BLOOM_SIZE = QUALITY_SETTINGS.bloomSize.values[0];
|
|
83
|
+
/** The smallest scale of ambient occlusion's targets above none, in thousandths of the render size. */
|
|
84
|
+
export const LOWEST_AO_SCALE = thousandths(QUALITY_SETTINGS.aoScale.values[1]);
|
|
85
|
+
/** The fewest steps above none that a march of contact shadows takes, which their step lowers to. */
|
|
86
|
+
export const FEWEST_CONTACT_STEPS = QUALITY_SETTINGS.contactShadowSteps.values[1];
|
|
87
|
+
/**
|
|
88
|
+
* The smallest scale of screen-space reflections' grid above none, in thousandths of the render
|
|
89
|
+
* size.
|
|
90
|
+
*/
|
|
91
|
+
export const LOWEST_SSR_SCALE = thousandths(QUALITY_SETTINGS.ssrScale.values[1]);
|
|
92
|
+
/**
|
|
93
|
+
* The governor's steps of the far cascades' interval from `interval` on: each step doubles it, up to
|
|
94
|
+
* the longest interval.
|
|
95
|
+
*/
|
|
96
|
+
export function farIntervalSteps(interval) {
|
|
97
|
+
let steps = 0;
|
|
98
|
+
for (let value = interval; value < LONGEST_FAR_INTERVAL; value *= 2)
|
|
99
|
+
steps++;
|
|
100
|
+
return steps;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The governor's steps of a far character's update interval from `interval` on: each step doubles
|
|
104
|
+
* it, up to the longest interval.
|
|
105
|
+
*/
|
|
106
|
+
export function animationSteps(interval) {
|
|
107
|
+
let steps = 0;
|
|
108
|
+
for (let value = interval; value < LONGEST_ANIMATION_INTERVAL; value *= 2)
|
|
109
|
+
steps++;
|
|
110
|
+
return steps;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The kinds of step, which `maxSteps` counts: the shadow filter takes the lightest filter, bloom's
|
|
114
|
+
* base halves, ambient occlusion takes its lowest scale and then draws none, the contact shadows'
|
|
115
|
+
* march takes the fewest steps, and the volumetric fog draws half its slices. Each kind has a name
|
|
116
|
+
* of its own, so a merge cannot fold two counts into one.
|
|
117
|
+
*/
|
|
118
|
+
const FILTER_STEPS = 1;
|
|
119
|
+
const BLOOM_STEPS = 1;
|
|
120
|
+
const OCCLUSION_STEPS = 2;
|
|
121
|
+
const CONTACT_STEPS = 1;
|
|
122
|
+
const FOG_STEPS = 1;
|
|
123
|
+
/** How long one window of frames lasts, in ms. */
|
|
124
|
+
export const WINDOW_MS = 250;
|
|
125
|
+
/** The stretch of frames that a step down judges, in ms: the last second, as the reports count. */
|
|
126
|
+
export const DROP_AFTER_MS = 1000;
|
|
127
|
+
/** The windows of that stretch. */
|
|
128
|
+
const DROP_WINDOWS = DROP_AFTER_MS / WINDOW_MS;
|
|
129
|
+
/** How long the frames keep room to spare before the first step up, in ms. */
|
|
130
|
+
export const RAISE_AFTER_MS = 5000;
|
|
131
|
+
/** The longest wait before a step up, however often steps up into its setting failed, in ms. */
|
|
132
|
+
export const LONGEST_RAISE_AFTER_MS = 80_000;
|
|
133
|
+
/** How long after a step the governor waits before it judges the frames again, in ms. */
|
|
134
|
+
export const SETTLE_MS = 1000;
|
|
135
|
+
/**
|
|
136
|
+
* How long a step up is on trial, in ms: a step down from its setting within this time counts as
|
|
137
|
+
* its failure. On the iPad, heat makes a step up that holds the target at first fail 9 to 15
|
|
138
|
+
* seconds later.
|
|
139
|
+
*/
|
|
140
|
+
export const FAILED_RAISE_MS = 30_000;
|
|
141
|
+
/**
|
|
142
|
+
* A step down is on trial too. When the first second judged after it came this percentage of the
|
|
143
|
+
* frame time of the second that caused it or more, the step made the frames slower, and the
|
|
144
|
+
* governor takes it back. A step that changes nothing stays: a step that saves little shows no gain
|
|
145
|
+
* within one second's noise, and the walk down passes through such steps. On CI's software GPU the
|
|
146
|
+
* step below the whole render scale turns on the two-step upscale, and the frames come about seven
|
|
147
|
+
* times slower (D-237).
|
|
148
|
+
*/
|
|
149
|
+
export const LOWER_LOSS_PERCENT = 110;
|
|
150
|
+
/**
|
|
151
|
+
* How long a step down may last without a judged second, in ms, before it counts as failed. The
|
|
152
|
+
* second that caused the step was judged, so frames that leave no second to judge came slower. A
|
|
153
|
+
* gap of `GAP_MS` between frames starts the windows again, so frames that slow never fill one.
|
|
154
|
+
*/
|
|
155
|
+
export const LOWER_TRIAL_MS = SETTLE_MS + 3 * DROP_AFTER_MS;
|
|
156
|
+
/** The shortest wait before a step down into a level whose step failed, in ms. */
|
|
157
|
+
export const FLOOR_AFTER_MS = 10_000;
|
|
158
|
+
/** How long after the first frame the governor takes no step, in ms. */
|
|
159
|
+
export const GRACE_MS = 2000;
|
|
160
|
+
/**
|
|
161
|
+
* A gap between frames this long, as after a pause, starts the windows again, in ms. A gap that a
|
|
162
|
+
* frame filled was no pause: a frame that the GPU or the thread that draws held for this long or
|
|
163
|
+
* more counts as a frame of its length, and fills the windows it spans (D-237). Its busy time is
|
|
164
|
+
* this share of the gap or more.
|
|
165
|
+
*/
|
|
166
|
+
export const GAP_MS = 500;
|
|
167
|
+
/** The share of a gap, in percent, that the busiest frame of it must fill to count as a held frame. */
|
|
168
|
+
export const HELD_FRAME_PERCENT = 50;
|
|
169
|
+
/** A GPU delay of this percentage of the budget or more means that frames queue on the GPU. */
|
|
170
|
+
export const QUEUED_PERCENT = 200;
|
|
171
|
+
/**
|
|
172
|
+
* Frames have room when their mean time since the room started is within this percentage of the
|
|
173
|
+
* budget, and each window's GPU delay is within `ROOM_DELAY_PERCENT`. The mean covers the whole
|
|
174
|
+
* stretch, not each window: where callbacks come from a timer that does not divide the display's
|
|
175
|
+
* period, as in Safari's workers, every 15th frame or so waits two callbacks, and a quarter second
|
|
176
|
+
* holds one or two such gaps. Window by window, the frames at the full rate then measured 97% to
|
|
177
|
+
* 105% of the budget.
|
|
178
|
+
*/
|
|
179
|
+
export const ROOM_PERCENT = 102;
|
|
180
|
+
/**
|
|
181
|
+
* A GPU delay within this percentage of the budget means that the GPU finishes each frame within
|
|
182
|
+
* about one. A WebGL2 fence's time rounds up to the next frame callback, so a lower figure would
|
|
183
|
+
* never show room there.
|
|
184
|
+
*/
|
|
185
|
+
export const ROOM_DELAY_PERCENT = 125;
|
|
186
|
+
/**
|
|
187
|
+
* The governor's clock moves its origin forward when it reaches this time, in ms: about 6 days, well
|
|
188
|
+
* within the 31 bits of a whole number that the browser keeps without a number object.
|
|
189
|
+
*/
|
|
190
|
+
export const CLOCK_LIMIT_MS = 2 ** 29;
|
|
191
|
+
/**
|
|
192
|
+
* The clock's time after its origin moves, in ms. It is longer than any span that the rules compare,
|
|
193
|
+
* so a time older than the new origin can take the origin's place and every verdict stays the same.
|
|
194
|
+
*/
|
|
195
|
+
const CLOCK_KEPT_MS = 2 * LONGEST_RAISE_AFTER_MS;
|
|
196
|
+
// The figures of one window of frames, by index in `Governor.window`.
|
|
197
|
+
/** The time at the window's end, in whole ms of the governor's clock. */
|
|
198
|
+
export const WINDOW_END = 0;
|
|
199
|
+
/** The window's frame time: the longer of the mean presented and completed intervals, in µs. */
|
|
200
|
+
export const FRAME_US = 1;
|
|
201
|
+
/** The mean time from a frame's submit until the GPU finished it, in µs, or 0 when none finished. */
|
|
202
|
+
export const GPU_DELAY_US = 2;
|
|
203
|
+
/** The frame budget: the interval of the target frame rate, in µs. */
|
|
204
|
+
export const BUDGET_US = 3;
|
|
205
|
+
// The governor's times, by index in its state, in whole ms of its clock. -1 marks one that has not
|
|
206
|
+
// happened.
|
|
207
|
+
const ROOM_SINCE = 0;
|
|
208
|
+
const JUDGE_FROM = 1;
|
|
209
|
+
/** The windows since the room started. */
|
|
210
|
+
const ROOM_WINDOWS = 2;
|
|
211
|
+
/** Their frame times less the budget, summed, in µs. */
|
|
212
|
+
const ROOM_EXCESS_US = 3;
|
|
213
|
+
/** The windows judged since the windows started again, up to `DROP_WINDOWS`. */
|
|
214
|
+
const RECENT_WINDOWS = 4;
|
|
215
|
+
/** The slot in `recent` that the next window takes. */
|
|
216
|
+
const RECENT_SLOT = 5;
|
|
217
|
+
/** The time of the step down that is still on trial, or -1. */
|
|
218
|
+
const LOWERED_AT = 6;
|
|
219
|
+
/** The mean frame time of the second that caused that step, in µs. */
|
|
220
|
+
const LOWERED_FRAME_US = 7;
|
|
221
|
+
/** The mean frame time of the second that the last window completed, in µs, or -1 before one. */
|
|
222
|
+
const SECOND_US = 8;
|
|
223
|
+
/** 1 when the step down on trial lowered the render scale, 0 otherwise. */
|
|
224
|
+
const LOWERED_SCALE_STEP = 9;
|
|
225
|
+
const STATE_SIZE = 10;
|
|
226
|
+
/**
|
|
227
|
+
* The governor's levels: 0 at the highest scale with the settings as set, and one more for each
|
|
228
|
+
* step down. They cover every scale of the widest range, every step of the budgets and every step
|
|
229
|
+
* past the scale, one count for each kind of step that `maxSteps` sums.
|
|
230
|
+
*/
|
|
231
|
+
const LEVELS = FULL_SCALE / SCALE_STEP +
|
|
232
|
+
1 +
|
|
233
|
+
BUDGET_STEPS +
|
|
234
|
+
DETAIL_STEPS +
|
|
235
|
+
farIntervalSteps(1) +
|
|
236
|
+
animationSteps(1) +
|
|
237
|
+
FILTER_STEPS +
|
|
238
|
+
BLOOM_STEPS +
|
|
239
|
+
OCCLUSION_STEPS +
|
|
240
|
+
CONTACT_STEPS +
|
|
241
|
+
FOG_STEPS;
|
|
242
|
+
/**
|
|
243
|
+
* The governor's rules, over windows of frame figures. The frame loop, or a test, fills `window`
|
|
244
|
+
* and calls `judge` once per window. The settings, the scene's shadows and the sketch's budgets set
|
|
245
|
+
* the steps it can take.
|
|
246
|
+
*/
|
|
247
|
+
export class Governor {
|
|
248
|
+
/** The render scale in thousandths. */
|
|
249
|
+
scale = FULL_SCALE;
|
|
250
|
+
/** The lowest render scale in thousandths. */
|
|
251
|
+
low = FULL_SCALE;
|
|
252
|
+
/** The highest render scale in thousandths. */
|
|
253
|
+
high = FULL_SCALE;
|
|
254
|
+
/** The steps past the render scale that the governor has taken: 0 while the settings apply as set. */
|
|
255
|
+
steps = 0;
|
|
256
|
+
/**
|
|
257
|
+
* What the threshold of the levels of detail is multiplied by: 1 with the setting as set, then
|
|
258
|
+
* 2 and 4 after the detail steps.
|
|
259
|
+
*/
|
|
260
|
+
detailFactor = 1;
|
|
261
|
+
/** The steps of the budgets' scale that the governor has taken: 0 at the full scale. */
|
|
262
|
+
budgetLevel = 0;
|
|
263
|
+
/** The far cascades' interval that frames draw with: the setting's, or longer after a step. */
|
|
264
|
+
farInterval = 1;
|
|
265
|
+
/** The shadow filter that frames draw with: the setting's, or the lightest after a step. */
|
|
266
|
+
filter = LIGHTEST_FILTER;
|
|
267
|
+
/** The halvings of bloom's base during play: 0 with the setting as set, or 1 after its step. */
|
|
268
|
+
bloomHalvings = 0;
|
|
269
|
+
/**
|
|
270
|
+
* The scale of ambient occlusion's targets in thousandths of the render size: the setting's, the
|
|
271
|
+
* lowest above none after the first step, or none after the last.
|
|
272
|
+
*/
|
|
273
|
+
aoScale = 0;
|
|
274
|
+
/** The steps of each march of contact shadows: the setting's, or the fewest after a step. */
|
|
275
|
+
contactSteps = 0;
|
|
276
|
+
/**
|
|
277
|
+
* The scale of screen-space reflections' grid in thousandths of the render size: the setting's,
|
|
278
|
+
* or the lowest above none after a step.
|
|
279
|
+
*/
|
|
280
|
+
ssrScale = 0;
|
|
281
|
+
/** The frames between two updates of a far character's pose: the setting's, or longer after a
|
|
282
|
+
* step. A sketch reads it and gives it to the characters that the camera sees from far.
|
|
283
|
+
*/
|
|
284
|
+
animationInterval = LONGEST_ANIMATION_INTERVAL;
|
|
285
|
+
/** The halvings of the volumetric fog's slices: 0 with the setting as set, or 1 after its step. */
|
|
286
|
+
fogHalvings = 0;
|
|
287
|
+
/**
|
|
288
|
+
* Counts each change of `detailFactor`, `farInterval`, `filter`, `bloomHalvings`, `aoScale`,
|
|
289
|
+
* `ssrScale`, `contactSteps`, `animationInterval` or `fogHalvings`, so the frame loop applies
|
|
290
|
+
* them.
|
|
291
|
+
*/
|
|
292
|
+
stepChanges = 0;
|
|
293
|
+
/** False while the governor is off: the scale stays at the highest and the settings as set. */
|
|
294
|
+
on = true;
|
|
295
|
+
/**
|
|
296
|
+
* True when the device draws on the CPU. Such a device gains little from drawing below the whole
|
|
297
|
+
* canvas: its upscale costs about as much as the pixels that the scale saves. So a step below the
|
|
298
|
+
* whole scale that does not pay closes the render scale for the session (D-237).
|
|
299
|
+
*/
|
|
300
|
+
software = false;
|
|
301
|
+
/** True once a failed step below the whole scale closed the render scale, on a software device. */
|
|
302
|
+
scaleClosed = false;
|
|
303
|
+
/** The figures of the window to judge, by the `WINDOW_END` to `BUDGET_US` indices. */
|
|
304
|
+
window = new Int32Array(BUDGET_US + 1);
|
|
305
|
+
state = new Int32Array(STATE_SIZE);
|
|
306
|
+
/** The frame times of the last `DROP_WINDOWS` windows, then their GPU delays, in µs. */
|
|
307
|
+
recent = new Int32Array(2 * DROP_WINDOWS);
|
|
308
|
+
/** By level: the time of the step up into it that is still on trial, in whole ms, or -1. */
|
|
309
|
+
raisedAt = new Int32Array(LEVELS);
|
|
310
|
+
/** By level: how long the frames keep room before a step up into it, in ms. */
|
|
311
|
+
raiseAfter = new Int32Array(LEVELS);
|
|
312
|
+
/** By level: the time until which no step down goes into it, in whole ms, or -1. */
|
|
313
|
+
floorUntil = new Int32Array(LEVELS);
|
|
314
|
+
/** By level: how long a failed step down into it keeps it closed, in ms. */
|
|
315
|
+
floorAfter = new Int32Array(LEVELS);
|
|
316
|
+
/** The settings that the shadow steps start from. */
|
|
317
|
+
intervalSetting = 1;
|
|
318
|
+
filterSetting = LIGHTEST_FILTER;
|
|
319
|
+
/** True when far cascades draw in every frame while moving casters touch them. */
|
|
320
|
+
followMovers = true;
|
|
321
|
+
/** The cascades of the main directional light's shadows, or 0 for none. */
|
|
322
|
+
cascades = 0;
|
|
323
|
+
/** True when point or spot lights cast shadows, which the filter's step lightens too. */
|
|
324
|
+
tiles = false;
|
|
325
|
+
/** The base of bloom's chain that its step halves, and whether bloom is on. */
|
|
326
|
+
bloomSetting = SMALLEST_BLOOM_SIZE;
|
|
327
|
+
bloom = false;
|
|
328
|
+
/** The scale of ambient occlusion that its step starts from, and whether it is on. */
|
|
329
|
+
aoSetting = 0;
|
|
330
|
+
ao = false;
|
|
331
|
+
/** The scale of screen-space reflections that their step starts from, and whether they are on. */
|
|
332
|
+
ssrSetting = 0;
|
|
333
|
+
ssr = false;
|
|
334
|
+
/** The volumetric fog's slices that its step halves, and whether it is on. */
|
|
335
|
+
fogSetting = 0;
|
|
336
|
+
fog = false;
|
|
337
|
+
/** The steps of contact shadows that their step starts from. */
|
|
338
|
+
contactSetting = 0;
|
|
339
|
+
/**
|
|
340
|
+
* The update interval of far characters that its step starts from: the longest interval at
|
|
341
|
+
* first, so a scene that never gives the governor a shorter one, as one with no animated
|
|
342
|
+
* characters, has no step to take here.
|
|
343
|
+
*/
|
|
344
|
+
animationSetting = LONGEST_ANIMATION_INTERVAL;
|
|
345
|
+
/** True while the scene draws a mesh with levels of detail, which the detail steps need. */
|
|
346
|
+
levels = false;
|
|
347
|
+
/** The steps that the sketch's budgets allow: those to the lowest of their floors. */
|
|
348
|
+
budgetSteps = 0;
|
|
349
|
+
constructor() {
|
|
350
|
+
this.restart(0);
|
|
351
|
+
this.forgetTrials();
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Sets the range of the render scale, in thousandths, from `low` to `high`, and brings the scale
|
|
355
|
+
* into it. The scale starts at the highest. A new range gives the levels new settings, so the
|
|
356
|
+
* governor forgets their trials.
|
|
357
|
+
*/
|
|
358
|
+
setRange(low, high) {
|
|
359
|
+
if (low !== this.low || high !== this.high)
|
|
360
|
+
this.forgetTrials();
|
|
361
|
+
this.low = low;
|
|
362
|
+
this.high = high;
|
|
363
|
+
this.scale = this.on ? Math.min(high, Math.max(low, this.scale)) : high;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Sets the shadow settings that the shadow steps start from, and whether far cascades draw in
|
|
367
|
+
* every frame while moving casters touch them, which the far cascades' step needs.
|
|
368
|
+
*/
|
|
369
|
+
setShadows(filter, interval, followMovers) {
|
|
370
|
+
this.filterSetting = filter;
|
|
371
|
+
this.intervalSetting = interval;
|
|
372
|
+
this.followMovers = followMovers;
|
|
373
|
+
this.applySteps();
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Sets what casts shadows in the scene: the main directional light's cascades, or 0 when it
|
|
377
|
+
* casts none, and with `tiles`, point or spot lights. The far cascades' steps need two cascades
|
|
378
|
+
* or more, and the filter's step any shadows.
|
|
379
|
+
*/
|
|
380
|
+
setCasters(cascades, tiles) {
|
|
381
|
+
if (cascades === this.cascades && tiles === this.tiles)
|
|
382
|
+
return;
|
|
383
|
+
this.cascades = cascades;
|
|
384
|
+
this.tiles = tiles;
|
|
385
|
+
this.applySteps();
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Sets the base of bloom's chain that its step halves, in texels on the short side, and whether
|
|
389
|
+
* the sketch has bloom on, which the step needs.
|
|
390
|
+
*/
|
|
391
|
+
setBloom(on, size) {
|
|
392
|
+
if (on === this.bloom && size === this.bloomSetting)
|
|
393
|
+
return;
|
|
394
|
+
this.bloom = on;
|
|
395
|
+
this.bloomSetting = size;
|
|
396
|
+
this.applySteps();
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Sets the scale of ambient occlusion's targets that its steps start from, in thousandths, and
|
|
400
|
+
* whether the sketch has it on, which the steps need. A setting above the lowest scale above
|
|
401
|
+
* none gives both steps: to that scale, then to none. The lowest gives the step to none alone.
|
|
402
|
+
*/
|
|
403
|
+
setAo(on, scale) {
|
|
404
|
+
if (on === this.ao && scale === this.aoSetting)
|
|
405
|
+
return;
|
|
406
|
+
this.ao = on;
|
|
407
|
+
this.aoSetting = scale;
|
|
408
|
+
this.applySteps();
|
|
409
|
+
}
|
|
410
|
+
/** Sets the steps of each march of contact shadows that their step starts from. */
|
|
411
|
+
setContact(steps) {
|
|
412
|
+
if (steps === this.contactSetting)
|
|
413
|
+
return;
|
|
414
|
+
this.contactSetting = steps;
|
|
415
|
+
this.applySteps();
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Sets the scale of screen-space reflections' grid that their step starts from, in thousandths,
|
|
419
|
+
* and whether the sketch has them on, which the step needs.
|
|
420
|
+
*/
|
|
421
|
+
setSsr(on, scale) {
|
|
422
|
+
if (on === this.ssr && scale === this.ssrSetting)
|
|
423
|
+
return;
|
|
424
|
+
this.ssr = on;
|
|
425
|
+
this.ssrSetting = scale;
|
|
426
|
+
this.applySteps();
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Sets the frames between two updates of a far character's pose that the step starts from. A
|
|
430
|
+
* sketch reads the result and gives it to its far characters.
|
|
431
|
+
*/
|
|
432
|
+
setAnimation(interval) {
|
|
433
|
+
if (interval === this.animationSetting)
|
|
434
|
+
return;
|
|
435
|
+
this.animationSetting = interval;
|
|
436
|
+
this.applySteps();
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Sets the volumetric fog's slices that its step halves, and whether the sketch has it on, which
|
|
440
|
+
* the step needs.
|
|
441
|
+
*/
|
|
442
|
+
setFog(on, slices) {
|
|
443
|
+
if (on === this.fog && slices === this.fogSetting)
|
|
444
|
+
return;
|
|
445
|
+
this.fog = on;
|
|
446
|
+
this.fogSetting = slices;
|
|
447
|
+
this.applySteps();
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Sets whether the scene draws a mesh with levels of detail, and the threshold of the levels is
|
|
451
|
+
* above 0, which the detail steps need.
|
|
452
|
+
*/
|
|
453
|
+
setLevels(on) {
|
|
454
|
+
if (on === this.levels)
|
|
455
|
+
return;
|
|
456
|
+
this.levels = on;
|
|
457
|
+
this.applySteps();
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Sets the steps of the budgets' scale that the sketch's budgets allow, 0 for none, and keeps the
|
|
461
|
+
* steps taken within them.
|
|
462
|
+
*/
|
|
463
|
+
setBudgetSteps(steps) {
|
|
464
|
+
this.budgetSteps = steps;
|
|
465
|
+
this.budgetLevel = Math.min(this.budgetLevel, steps);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Turns the governor on or off. Off, the scale goes to the highest, the budgets to the full scale,
|
|
469
|
+
* and the settings apply as set.
|
|
470
|
+
*/
|
|
471
|
+
setOn(on) {
|
|
472
|
+
this.on = on;
|
|
473
|
+
if (on)
|
|
474
|
+
return;
|
|
475
|
+
this.state[LOWERED_AT] = -1;
|
|
476
|
+
this.scale = this.high;
|
|
477
|
+
this.budgetLevel = 0;
|
|
478
|
+
this.steps = 0;
|
|
479
|
+
this.applySteps();
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Says whether the device draws on the CPU, which its reported name tells (D-174, D-237). A
|
|
483
|
+
* software device whose first step below the whole render scale did not pay keeps the whole
|
|
484
|
+
* scale: its two-step upscale costs about what the smaller scene saves, so every step down into
|
|
485
|
+
* it would lose the frames that the trial then has to watch.
|
|
486
|
+
*/
|
|
487
|
+
setSoftware(software) {
|
|
488
|
+
if (software === this.software)
|
|
489
|
+
return;
|
|
490
|
+
this.software = software;
|
|
491
|
+
this.scaleClosed = false;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* The steps past the render scale that the scene's levels of detail, shadows, bloom, ambient
|
|
495
|
+
* occlusion's scale and removal, screen-space reflections, contact shadows, the far characters'
|
|
496
|
+
* update interval, the volumetric fog's slices and the settings allow.
|
|
497
|
+
*/
|
|
498
|
+
get maxSteps() {
|
|
499
|
+
return (this.detailSteps() +
|
|
500
|
+
this.intervalSteps() +
|
|
501
|
+
this.filterSteps() +
|
|
502
|
+
this.bloomSteps() +
|
|
503
|
+
this.aoSteps() +
|
|
504
|
+
this.ssrSteps() +
|
|
505
|
+
this.contactStepCount() +
|
|
506
|
+
this.animationStepCount() +
|
|
507
|
+
this.fogSteps());
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Forgets the frames before `from`, a time in whole ms: no step before it, and no window over or
|
|
511
|
+
* under the budget yet. The frame loop calls it at the first frame, as the grace starts, after a
|
|
512
|
+
* pause, and while the scene loads. It never moves the first judgement earlier: a stall within
|
|
513
|
+
* the grace or the wait after a step leaves the rest of it.
|
|
514
|
+
*/
|
|
515
|
+
restart(from) {
|
|
516
|
+
const { state } = this;
|
|
517
|
+
state[ROOM_SINCE] = -1;
|
|
518
|
+
state[JUDGE_FROM] = Math.max(from, state[JUDGE_FROM]);
|
|
519
|
+
state[RECENT_WINDOWS] = 0;
|
|
520
|
+
state[SECOND_US] = -1;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* A gap of `GAP_MS` or more between frames at `now`, a time in whole ms. `heldUs` is the length
|
|
524
|
+
* of the frame behind the gap, in µs, when a frame was drawing through it, or 0 for a pause.
|
|
525
|
+
* `budgetUs` is the frame budget, which a held frame's windows are judged by.
|
|
526
|
+
*
|
|
527
|
+
* A pause starts the windows again. A step down still on trial that has had no judged second for
|
|
528
|
+
* `LOWER_TRIAL_MS` fails here, since its frames came too slowly to fill a window. A pause in play
|
|
529
|
+
* during the trial fails it too; the floor's first wait is short, so the governor tries the step
|
|
530
|
+
* again soon.
|
|
531
|
+
*
|
|
532
|
+
* A held frame counts as a frame of its length. It fills the windows it spans, so one 3 s frame
|
|
533
|
+
* makes a whole second of windows that missed, and a page that draws a few frames a second is
|
|
534
|
+
* judged like any other (D-237).
|
|
535
|
+
*/
|
|
536
|
+
gap(now, heldUs = 0, budgetUs = 0) {
|
|
537
|
+
const { state } = this;
|
|
538
|
+
const lowered = state[LOWERED_AT];
|
|
539
|
+
if (this.on && lowered >= 0) {
|
|
540
|
+
// A step down is on trial. A held frame that came clearly slower than the second before
|
|
541
|
+
// the step fails the trial at once, and no further step follows from it.
|
|
542
|
+
if (heldUs > 0) {
|
|
543
|
+
if (heldUs * 100 >= state[LOWERED_FRAME_US] * LOWER_LOSS_PERCENT) {
|
|
544
|
+
this.undoLower(now);
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
else if (now - lowered > LOWER_TRIAL_MS) {
|
|
549
|
+
this.undoLower(now);
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
if (heldUs > 0 && budgetUs > 0)
|
|
554
|
+
this.fillWindows(now, heldUs, budgetUs);
|
|
555
|
+
else
|
|
556
|
+
this.restart(now);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Judges a held frame of `heldUs` µs as the windows it spans, up to the second that a step
|
|
560
|
+
* judges. A step restarts the windows, so the rest of a long frame is left to the new setting.
|
|
561
|
+
*/
|
|
562
|
+
fillWindows(now, heldUs, budgetUs) {
|
|
563
|
+
const { window } = this;
|
|
564
|
+
const spans = Math.min(DROP_WINDOWS, Math.max(1, Math.ceil(heldUs / (WINDOW_MS * 1000))));
|
|
565
|
+
window[WINDOW_END] = now;
|
|
566
|
+
window[FRAME_US] = heldUs;
|
|
567
|
+
window[GPU_DELAY_US] = heldUs;
|
|
568
|
+
window[BUDGET_US] = budgetUs;
|
|
569
|
+
for (let k = 0; k < spans && this.on; k++)
|
|
570
|
+
this.judge();
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Moves the clock's origin `by` ms forward: each time that the governor holds moves back by as
|
|
574
|
+
* much. A time from before the new origin takes the origin's place, which the frame loop keeps
|
|
575
|
+
* longer ago than any span that the rules compare.
|
|
576
|
+
*/
|
|
577
|
+
moveOrigin(by) {
|
|
578
|
+
const { state, raisedAt, floorUntil } = this;
|
|
579
|
+
state[ROOM_SINCE] = earlier(state[ROOM_SINCE], by);
|
|
580
|
+
state[JUDGE_FROM] = earlier(state[JUDGE_FROM], by);
|
|
581
|
+
state[LOWERED_AT] = earlier(state[LOWERED_AT], by);
|
|
582
|
+
for (let level = 0; level < LEVELS; level++) {
|
|
583
|
+
raisedAt[level] = earlier(raisedAt[level], by);
|
|
584
|
+
floorUntil[level] = earlier(floorUntil[level], by);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
/** Judges the window in `window`, and takes one step when the rules say so. */
|
|
588
|
+
judge() {
|
|
589
|
+
const { window, state } = this;
|
|
590
|
+
const now = window[WINDOW_END];
|
|
591
|
+
if (!this.on || now < state[JUDGE_FROM])
|
|
592
|
+
return;
|
|
593
|
+
const budget = window[BUDGET_US];
|
|
594
|
+
const frame = window[FRAME_US];
|
|
595
|
+
const delay = window[GPU_DELAY_US];
|
|
596
|
+
// The window joins the last second before the trial reads that second: a held frame fills
|
|
597
|
+
// the windows it spans, and the last of them completes the second that judges a trial.
|
|
598
|
+
const missed = this.missed(frame, delay, budget);
|
|
599
|
+
if (this.lowerFailed(now)) {
|
|
600
|
+
this.undoLower(now);
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
if (missed) {
|
|
604
|
+
this.lower(now);
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
const calm = delay * 100 <= budget * ROOM_DELAY_PERCENT;
|
|
608
|
+
if (!calm) {
|
|
609
|
+
state[ROOM_SINCE] = -1;
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
if (state[ROOM_SINCE] < 0)
|
|
613
|
+
this.startRoom(now);
|
|
614
|
+
const windows = state[ROOM_WINDOWS] + 1;
|
|
615
|
+
const excess = state[ROOM_EXCESS_US] + frame - budget;
|
|
616
|
+
state[ROOM_WINDOWS] = windows;
|
|
617
|
+
state[ROOM_EXCESS_US] = excess;
|
|
618
|
+
const wait = this.raiseAfter[Math.max(0, this.level() - 1)];
|
|
619
|
+
if (now - state[ROOM_SINCE] < wait)
|
|
620
|
+
return;
|
|
621
|
+
if (excess * 100 <= windows * budget * (ROOM_PERCENT - 100))
|
|
622
|
+
this.raise(now);
|
|
623
|
+
else {
|
|
624
|
+
// The frames ran a little long over the wait: it starts again, so that frames which
|
|
625
|
+
// have room later are judged on their own.
|
|
626
|
+
this.startRoom(now);
|
|
627
|
+
state[ROOM_WINDOWS] = 1;
|
|
628
|
+
state[ROOM_EXCESS_US] = frame - budget;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Adds a window to the last second's, and tells whether that second missed the target. It
|
|
633
|
+
* missed when its frames, on average, came slower than the benchmark reports' line for a second
|
|
634
|
+
* that holds the target rate, and no window of it had room. A lower setting does not help a
|
|
635
|
+
* short stall amid frames at the target rate, so such a stall alone takes no step. The second
|
|
636
|
+
* missed too when every window of it queued on the GPU. Only a whole second of windows since the
|
|
637
|
+
* windows started again can miss.
|
|
638
|
+
*/
|
|
639
|
+
missed(frame, delay, budget) {
|
|
640
|
+
const { state, recent } = this;
|
|
641
|
+
const slot = state[RECENT_SLOT];
|
|
642
|
+
recent[slot] = frame;
|
|
643
|
+
recent[DROP_WINDOWS + slot] = delay;
|
|
644
|
+
state[RECENT_SLOT] = (slot + 1) % DROP_WINDOWS;
|
|
645
|
+
const windows = Math.min(DROP_WINDOWS, state[RECENT_WINDOWS] + 1);
|
|
646
|
+
state[RECENT_WINDOWS] = windows;
|
|
647
|
+
if (windows < DROP_WINDOWS)
|
|
648
|
+
return false;
|
|
649
|
+
let frames = 0;
|
|
650
|
+
let fastest = recent[0];
|
|
651
|
+
let leastDelay = recent[DROP_WINDOWS];
|
|
652
|
+
for (let k = 0; k < DROP_WINDOWS; k++) {
|
|
653
|
+
const time = recent[k];
|
|
654
|
+
frames += time;
|
|
655
|
+
fastest = Math.min(fastest, time);
|
|
656
|
+
leastDelay = Math.min(leastDelay, recent[DROP_WINDOWS + k]);
|
|
657
|
+
}
|
|
658
|
+
state[SECOND_US] = Math.round(frames / DROP_WINDOWS);
|
|
659
|
+
// The rate holds the target while it is at least the held share of it, so the mean frame
|
|
660
|
+
// time misses it once it is longer than the budget over that share.
|
|
661
|
+
const slow = frames * HELD_PERCENT > DROP_WINDOWS * budget * 100 && fastest * 100 > budget * ROOM_PERCENT;
|
|
662
|
+
return slow || leastDelay * 100 >= budget * QUEUED_PERCENT;
|
|
663
|
+
}
|
|
664
|
+
/** Starts the room's stretch at the window that ends at `now`, with no window summed yet. */
|
|
665
|
+
startRoom(now) {
|
|
666
|
+
const { state } = this;
|
|
667
|
+
state[ROOM_SINCE] = now - WINDOW_MS;
|
|
668
|
+
state[ROOM_WINDOWS] = 0;
|
|
669
|
+
state[ROOM_EXCESS_US] = 0;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* One step down: the budgets and the render scale in turn, a budget's step first, while the
|
|
673
|
+
* scale is above the lowest; then the budgets' remaining steps, then the detail, shadow, bloom,
|
|
674
|
+
* ambient occlusion's scale and removal, contact shadow and far-character interval steps. When
|
|
675
|
+
* it leaves a level whose step up is still on trial, the next step up into that level waits twice
|
|
676
|
+
* as long as that one did. Otherwise the level held, and the frames got heavier, so its wait
|
|
677
|
+
* starts again from its shortest. A level that a failed step down closed takes no step until its
|
|
678
|
+
* wait has passed. The step goes on trial (`lowerFailed`).
|
|
679
|
+
*/
|
|
680
|
+
lower(now) {
|
|
681
|
+
const left = this.level();
|
|
682
|
+
const { budgetLevel, state } = this;
|
|
683
|
+
const scale = this.scale;
|
|
684
|
+
let moved = true;
|
|
685
|
+
if (this.floorUntil[Math.min(LEVELS - 1, left + 1)] > now)
|
|
686
|
+
moved = false;
|
|
687
|
+
else if (budgetLevel < this.budgetSteps &&
|
|
688
|
+
(budgetLevel <= this.scaleSteps() || this.scale <= this.low || this.scaleClosed))
|
|
689
|
+
this.budgetLevel = budgetLevel + 1;
|
|
690
|
+
else if (this.scale > this.low && !this.scaleClosed)
|
|
691
|
+
this.scale = Math.max(this.low, this.scale - SCALE_STEP);
|
|
692
|
+
else if (this.steps < this.maxSteps)
|
|
693
|
+
this.moveSteps(1);
|
|
694
|
+
else
|
|
695
|
+
moved = false;
|
|
696
|
+
if (moved) {
|
|
697
|
+
const { raisedAt, raiseAfter } = this;
|
|
698
|
+
const raised = raisedAt[left];
|
|
699
|
+
raiseAfter[left] =
|
|
700
|
+
raised >= 0 && now - raised <= FAILED_RAISE_MS
|
|
701
|
+
? Math.min(LONGEST_RAISE_AFTER_MS, raiseAfter[left] * 2)
|
|
702
|
+
: RAISE_AFTER_MS;
|
|
703
|
+
raisedAt[left] = -1;
|
|
704
|
+
state[LOWERED_AT] = now;
|
|
705
|
+
state[LOWERED_FRAME_US] = state[SECOND_US];
|
|
706
|
+
state[LOWERED_SCALE_STEP] = this.scale < scale ? 1 : 0;
|
|
707
|
+
}
|
|
708
|
+
this.settle(moved, now);
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Ends the trial of the last step down once a second has been judged since it, and tells
|
|
712
|
+
* whether the step failed: its frames came `LOWER_LOSS_PERCENT` of the frames before it or
|
|
713
|
+
* slower, or no second was judged within `LOWER_TRIAL_MS`. A step that held is kept, and the
|
|
714
|
+
* level it went to opens again at the shortest wait.
|
|
715
|
+
*/
|
|
716
|
+
lowerFailed(now) {
|
|
717
|
+
const { state } = this;
|
|
718
|
+
const lowered = state[LOWERED_AT];
|
|
719
|
+
if (lowered < 0)
|
|
720
|
+
return false;
|
|
721
|
+
const second = state[SECOND_US];
|
|
722
|
+
if (second < 0)
|
|
723
|
+
return now - lowered > LOWER_TRIAL_MS;
|
|
724
|
+
state[LOWERED_AT] = -1;
|
|
725
|
+
if (second * 100 >= state[LOWERED_FRAME_US] * LOWER_LOSS_PERCENT)
|
|
726
|
+
return true;
|
|
727
|
+
const level = this.level();
|
|
728
|
+
this.floorUntil[level] = -1;
|
|
729
|
+
this.floorAfter[level] = FLOOR_AFTER_MS;
|
|
730
|
+
return false;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Takes back the step down on trial, and keeps the governor from stepping into its level again
|
|
734
|
+
* until a wait has passed. The wait doubles with each failed step into that level, up to the
|
|
735
|
+
* longest wait of a step up. On a software device, a failed step below the whole render scale
|
|
736
|
+
* closes the render scale for the session (D-237).
|
|
737
|
+
*/
|
|
738
|
+
undoLower(now) {
|
|
739
|
+
const level = this.level();
|
|
740
|
+
const { floorUntil, floorAfter, state } = this;
|
|
741
|
+
if (this.software && state[LOWERED_SCALE_STEP] !== 0)
|
|
742
|
+
this.scaleClosed = true;
|
|
743
|
+
const wait = floorAfter[level];
|
|
744
|
+
floorUntil[level] = now + wait;
|
|
745
|
+
floorAfter[level] = Math.min(LONGEST_RAISE_AFTER_MS, wait * 2);
|
|
746
|
+
state[LOWERED_AT] = -1;
|
|
747
|
+
this.stepUp();
|
|
748
|
+
this.settle(true, now);
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* One step up, in the reverse order of the steps down: the ambient occlusion's removal and then
|
|
752
|
+
* its scale, bloom, shadow and detail steps back first, then the budgets' steps past the
|
|
753
|
+
* scale's, then the render scale and the budgets in turn, so the budgets' last step comes back
|
|
754
|
+
* last.
|
|
755
|
+
*/
|
|
756
|
+
raise(now) {
|
|
757
|
+
const moved = this.stepUp();
|
|
758
|
+
if (moved)
|
|
759
|
+
this.raisedAt[this.level()] = now;
|
|
760
|
+
this.settle(moved, now);
|
|
761
|
+
}
|
|
762
|
+
/** Moves one step up, and tells whether there was one to take. */
|
|
763
|
+
stepUp() {
|
|
764
|
+
if (this.steps > 0)
|
|
765
|
+
this.moveSteps(-1);
|
|
766
|
+
else if (this.budgetLevel > this.scaleSteps())
|
|
767
|
+
this.budgetLevel--;
|
|
768
|
+
else if (this.scale < this.high)
|
|
769
|
+
this.scale = Math.min(this.high, this.scale + SCALE_STEP);
|
|
770
|
+
else
|
|
771
|
+
return false;
|
|
772
|
+
return true;
|
|
773
|
+
}
|
|
774
|
+
/** The level that the frames draw at: the scale's steps, the budgets' and the steps past the scale. */
|
|
775
|
+
level() {
|
|
776
|
+
return Math.min(LEVELS - 1, this.scaleSteps() + this.budgetLevel + this.steps);
|
|
777
|
+
}
|
|
778
|
+
/** The render scale's steps below the highest, rounded up. */
|
|
779
|
+
scaleSteps() {
|
|
780
|
+
const below = this.high - this.scale;
|
|
781
|
+
const rest = below % SCALE_STEP;
|
|
782
|
+
return (below - rest) / SCALE_STEP + (rest > 0 ? 1 : 0);
|
|
783
|
+
}
|
|
784
|
+
/** Forgets every level's trial: no step up on trial, and the shortest wait before each. */
|
|
785
|
+
forgetTrials() {
|
|
786
|
+
this.raisedAt.fill(-1);
|
|
787
|
+
this.raiseAfter.fill(RAISE_AFTER_MS);
|
|
788
|
+
this.floorUntil.fill(-1);
|
|
789
|
+
this.floorAfter.fill(FLOOR_AFTER_MS);
|
|
790
|
+
this.state[LOWERED_AT] = -1;
|
|
791
|
+
this.state[LOWERED_SCALE_STEP] = 0;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* After a step, waits for the frames of the new setting. At the end of the steps the settings
|
|
795
|
+
* stay, and the windows start again, so the frames are judged afresh.
|
|
796
|
+
*/
|
|
797
|
+
settle(moved, now) {
|
|
798
|
+
this.restart(moved ? now + SETTLE_MS : now);
|
|
799
|
+
}
|
|
800
|
+
moveSteps(by) {
|
|
801
|
+
this.steps += by;
|
|
802
|
+
this.applySteps();
|
|
803
|
+
}
|
|
804
|
+
/** The detail steps while the scene draws a mesh with levels of detail. */
|
|
805
|
+
detailSteps() {
|
|
806
|
+
return this.levels ? DETAIL_STEPS : 0;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* The far cascades' steps: none without far cascades, and none while far cascades keep their
|
|
810
|
+
* turns around moving casters.
|
|
811
|
+
*/
|
|
812
|
+
intervalSteps() {
|
|
813
|
+
return this.cascades > 1 && this.followMovers ? farIntervalSteps(this.intervalSetting) : 0;
|
|
814
|
+
}
|
|
815
|
+
/** The filter's step: one where shadows filter with more than the lightest filter. */
|
|
816
|
+
filterSteps() {
|
|
817
|
+
return (this.cascades > 0 || this.tiles) && this.filterSetting > LIGHTEST_FILTER ? 1 : 0;
|
|
818
|
+
}
|
|
819
|
+
/** Bloom's step while it is on above the smallest base: it halves the base. */
|
|
820
|
+
bloomSteps() {
|
|
821
|
+
return this.bloom && this.bloomSetting > SMALLEST_BLOOM_SIZE ? 1 : 0;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Ambient occlusion's steps while it draws: to the lowest scale above none, then to none. It
|
|
825
|
+
* draws at the lowest already, so only the step to none remains.
|
|
826
|
+
*/
|
|
827
|
+
aoSteps() {
|
|
828
|
+
if (!this.ao || this.aoSetting <= 0)
|
|
829
|
+
return 0;
|
|
830
|
+
return this.aoSetting > LOWEST_AO_SCALE ? OCCLUSION_STEPS : 1;
|
|
831
|
+
}
|
|
832
|
+
/** Screen-space reflections' step while they draw above the lowest scale: to the lowest. */
|
|
833
|
+
ssrSteps() {
|
|
834
|
+
return this.ssr && this.ssrSetting > LOWEST_SSR_SCALE ? 1 : 0;
|
|
835
|
+
}
|
|
836
|
+
/** The volumetric fog's step while it draws: it halves the slices that each frame draws. */
|
|
837
|
+
fogSteps() {
|
|
838
|
+
return this.fog && this.fogSetting > 0 ? 1 : 0;
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* The contact shadows' step while the main directional light casts shadows and their march
|
|
842
|
+
* takes more than the fewest steps: to the fewest.
|
|
843
|
+
*/
|
|
844
|
+
contactStepCount() {
|
|
845
|
+
return this.cascades > 0 && this.contactSetting > FEWEST_CONTACT_STEPS ? 1 : 0;
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* The far characters' interval steps: each doubles the setting, from it up to the longest
|
|
849
|
+
* interval. A crowd that never uses the setting still carries the steps, which the frame loop
|
|
850
|
+
* applies to nothing.
|
|
851
|
+
*/
|
|
852
|
+
animationStepCount() {
|
|
853
|
+
return animationSteps(this.animationSetting);
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Brings the steps within what the settings and the scene allow, and works out the settings
|
|
857
|
+
* that frames draw with: the threshold of the levels of detail doubles with each of its steps,
|
|
858
|
+
* then the far cascades' interval doubles with each of its steps, the filter takes the lightest
|
|
859
|
+
* after them, then bloom's base halves, then ambient occlusion takes its lowest scale and then
|
|
860
|
+
* draws none, then screen-space reflections take theirs, then contact shadows take their fewest
|
|
861
|
+
* steps, then the far characters' update interval doubles with each of its steps, and last the
|
|
862
|
+
* volumetric fog draws half its slices.
|
|
863
|
+
*/
|
|
864
|
+
applySteps() {
|
|
865
|
+
const detailSteps = this.detailSteps();
|
|
866
|
+
const intervalSteps = this.intervalSteps();
|
|
867
|
+
const shadowSteps = detailSteps + intervalSteps + this.filterSteps();
|
|
868
|
+
const bloomSteps = this.bloomSteps();
|
|
869
|
+
const aoSteps = this.aoSteps();
|
|
870
|
+
const ssrSteps = this.ssrSteps();
|
|
871
|
+
const before = shadowSteps + bloomSteps + aoSteps + ssrSteps;
|
|
872
|
+
const contactStepCount = this.contactStepCount();
|
|
873
|
+
const animationStepCount = this.animationStepCount();
|
|
874
|
+
this.steps = Math.min(this.steps, before + contactStepCount + animationStepCount + this.fogSteps());
|
|
875
|
+
const detailFactor = 1 << Math.min(this.steps, detailSteps);
|
|
876
|
+
const shadowStepsTaken = Math.max(0, this.steps - detailSteps);
|
|
877
|
+
const doublings = Math.min(shadowStepsTaken, intervalSteps);
|
|
878
|
+
const farInterval = Math.min(LONGEST_FAR_INTERVAL, this.intervalSetting << doublings);
|
|
879
|
+
const filter = shadowStepsTaken > intervalSteps ? LIGHTEST_FILTER : this.filterSetting;
|
|
880
|
+
const bloomHalvings = Math.min(bloomSteps, Math.max(0, this.steps - shadowSteps));
|
|
881
|
+
// Ambient occlusion's steps run in order: the first takes its target to the lowest scale
|
|
882
|
+
// above none, and the last draws none.
|
|
883
|
+
const aoTaken = Math.min(aoSteps, Math.max(0, this.steps - shadowSteps - bloomSteps));
|
|
884
|
+
let aoScale = this.aoSetting;
|
|
885
|
+
if (aoSteps > 0) {
|
|
886
|
+
if (aoTaken >= aoSteps)
|
|
887
|
+
aoScale = 0;
|
|
888
|
+
else if (aoTaken > 0)
|
|
889
|
+
aoScale = LOWEST_AO_SCALE;
|
|
890
|
+
}
|
|
891
|
+
const ssrScale = ssrSteps > 0 && this.steps > shadowSteps + bloomSteps + aoSteps
|
|
892
|
+
? LOWEST_SSR_SCALE
|
|
893
|
+
: this.ssrSetting;
|
|
894
|
+
const contactSteps = this.steps > before ? FEWEST_CONTACT_STEPS : this.contactSetting;
|
|
895
|
+
const animationTaken = Math.max(0, this.steps - before - contactStepCount);
|
|
896
|
+
const animationInterval = Math.min(LONGEST_ANIMATION_INTERVAL, this.animationSetting << animationTaken);
|
|
897
|
+
const fogHalvings = this.steps > before + contactStepCount + animationStepCount ? 1 : 0;
|
|
898
|
+
if (detailFactor === this.detailFactor &&
|
|
899
|
+
farInterval === this.farInterval &&
|
|
900
|
+
filter === this.filter &&
|
|
901
|
+
bloomHalvings === this.bloomHalvings &&
|
|
902
|
+
aoScale === this.aoScale &&
|
|
903
|
+
ssrScale === this.ssrScale &&
|
|
904
|
+
contactSteps === this.contactSteps &&
|
|
905
|
+
animationInterval === this.animationInterval &&
|
|
906
|
+
fogHalvings === this.fogHalvings)
|
|
907
|
+
return;
|
|
908
|
+
this.detailFactor = detailFactor;
|
|
909
|
+
this.farInterval = farInterval;
|
|
910
|
+
this.filter = filter;
|
|
911
|
+
this.bloomHalvings = bloomHalvings;
|
|
912
|
+
this.aoScale = aoScale;
|
|
913
|
+
this.ssrScale = ssrScale;
|
|
914
|
+
this.contactSteps = contactSteps;
|
|
915
|
+
this.animationInterval = animationInterval;
|
|
916
|
+
this.fogHalvings = fogHalvings;
|
|
917
|
+
this.stepChanges++;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* The governor in the frame loop: it sums the presented and completed frames that the metrics
|
|
922
|
+
* rings receive, and hands each window's figures to the governor.
|
|
923
|
+
*/
|
|
924
|
+
export class GovernorLoop {
|
|
925
|
+
governor;
|
|
926
|
+
scene;
|
|
927
|
+
/** The frame loop's clock reading at the start of the frame, in ms, which it writes first. */
|
|
928
|
+
now = new Float64Array(1);
|
|
929
|
+
presented;
|
|
930
|
+
completed;
|
|
931
|
+
refresh;
|
|
932
|
+
/** The highest frame rate the governor aims for, in hertz, as the preset check's target allows. */
|
|
933
|
+
maxTargetHz;
|
|
934
|
+
/** True once a completion record has come: the engine's first frames leave none. */
|
|
935
|
+
completionsSeen = false;
|
|
936
|
+
/**
|
|
937
|
+
* The window's start and the last frame's time, in ms, or -1 before the first frame, then the
|
|
938
|
+
* origin of the governor's clock on the frame loop's clock.
|
|
939
|
+
*/
|
|
940
|
+
times = new Float64Array([-1, -1, 0]);
|
|
941
|
+
/**
|
|
942
|
+
* `maxTargetHz` is the highest target: 60 by default, the page's `targetFps` setting, infinity
|
|
943
|
+
* for the display's full rate, and at most the rate that ?fps= holds.
|
|
944
|
+
*/
|
|
945
|
+
constructor(governor, metrics, scene, maxTargetHz = CHECK_MAX_FPS) {
|
|
946
|
+
this.governor = governor;
|
|
947
|
+
this.scene = scene;
|
|
948
|
+
this.presented = new RingSums(metrics, Role.Render);
|
|
949
|
+
this.completed = new RingSums(metrics, Role.Completion);
|
|
950
|
+
this.refresh = new RefreshRate(metrics);
|
|
951
|
+
this.maxTargetHz = maxTargetHz;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Takes in the frames since the last call, and judges them at the end of each window. The
|
|
955
|
+
* frame loop writes the frame's clock reading into `now` first. While the governor is off, it
|
|
956
|
+
* does nothing. `resumed` says that the page showed again since the last call, which explains
|
|
957
|
+
* a long gap and is no frame of the page's.
|
|
958
|
+
*/
|
|
959
|
+
frame(resumed = false) {
|
|
960
|
+
const { times, presented, completed, governor } = this;
|
|
961
|
+
// Off, the governor judges nothing. Turned on again, it starts as at the first frame.
|
|
962
|
+
if (!governor.on) {
|
|
963
|
+
times[1] = -1;
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
const now = this.now[0];
|
|
967
|
+
presented.add();
|
|
968
|
+
completed.add();
|
|
969
|
+
if (!this.completionsSeen && completed.sums[SUM_RECORDS] > 0)
|
|
970
|
+
this.completionsSeen = true;
|
|
971
|
+
const last = times[1];
|
|
972
|
+
times[1] = now;
|
|
973
|
+
if (last < 0)
|
|
974
|
+
governor.restart(this.clock(now) + GRACE_MS);
|
|
975
|
+
else if (now - last >= GAP_MS) {
|
|
976
|
+
// The first frame after a pause, or after a frame that took as long. A pause starts the
|
|
977
|
+
// windows again; a frame that was drawing through the gap counts as a frame of its
|
|
978
|
+
// length, which the governor judges (D-237).
|
|
979
|
+
const gap = now - last;
|
|
980
|
+
const held = this.heldFrame(gap, resumed);
|
|
981
|
+
governor.gap(this.clock(now), held ? Math.round(gap * 1000) : 0, this.budgetUs());
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
if (now - times[0] < WINDOW_MS)
|
|
985
|
+
return;
|
|
986
|
+
const casters = this.scene.shadowCasters();
|
|
987
|
+
governor.setCasters(casters & SHADOW_CASTERS_CASCADE_MASK, (casters & SHADOW_CASTERS_TILES) !== 0);
|
|
988
|
+
governor.setLevels(this.scene.hasLevels());
|
|
989
|
+
// The window's figures turn into whole numbers here, in code that runs every frame and
|
|
990
|
+
// so gets optimized, before the governor judges them.
|
|
991
|
+
const shown = presented.sums;
|
|
992
|
+
const done = completed.sums;
|
|
993
|
+
const shownFrames = shown[SUM_RECORDS];
|
|
994
|
+
const doneFrames = done[SUM_RECORDS];
|
|
995
|
+
if (this.scene.loading())
|
|
996
|
+
governor.restart(this.clock(now));
|
|
997
|
+
else if (shownFrames > 0) {
|
|
998
|
+
const window = governor.window;
|
|
999
|
+
const shownMs = shown[SUM_INTERVAL_MS] / shownFrames;
|
|
1000
|
+
const doneMs = doneFrames > 0 ? done[SUM_INTERVAL_MS] / doneFrames : 0;
|
|
1001
|
+
const delayMs = doneFrames > 0 ? done[SUM_BUSY_MS] / doneFrames : 0;
|
|
1002
|
+
window[WINDOW_END] = this.clock(now);
|
|
1003
|
+
window[FRAME_US] = Math.round(Math.max(shownMs, doneMs) * 1000);
|
|
1004
|
+
window[GPU_DELAY_US] = Math.round(delayMs * 1000);
|
|
1005
|
+
window[BUDGET_US] = this.budgetUs();
|
|
1006
|
+
governor.judge();
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
// A new window starts at this frame.
|
|
1010
|
+
times[0] = now;
|
|
1011
|
+
presented.clear();
|
|
1012
|
+
completed.clear();
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* True when a frame was drawing through a gap of `gapMs` between two frames, rather than the
|
|
1016
|
+
* page pausing. The longest busy time of the frames that finished since the last call is a
|
|
1017
|
+
* frame's own length when the GPU or the thread that draws held it, and a frame's usual time
|
|
1018
|
+
* after a pause. A frame that a sketch on a thread of its own held is a pause here: the scale
|
|
1019
|
+
* would not lighten the sketch's own work.
|
|
1020
|
+
*/
|
|
1021
|
+
heldFrame(gapMs, resumed) {
|
|
1022
|
+
// A resume of the page explains the gap, and is no frame of the page's.
|
|
1023
|
+
if (resumed)
|
|
1024
|
+
return false;
|
|
1025
|
+
const longest = Math.max(this.presented.sums[SUM_LONGEST_BUSY_MS], this.completed.sums[SUM_LONGEST_BUSY_MS]);
|
|
1026
|
+
if (longest * 100 >= gapMs * HELD_FRAME_PERCENT)
|
|
1027
|
+
return true;
|
|
1028
|
+
// A frame that the GPU still holds has no busy time yet: a completion is recorded only when
|
|
1029
|
+
// the GPU finishes the frame, and a frame held far longer than the recent ones is given up
|
|
1030
|
+
// without one. So a frame that the thread that draws presented since the last call, and
|
|
1031
|
+
// that no completion has followed, was drawing through the whole gap.
|
|
1032
|
+
// The engine's first frames leave no completion record, so the absence says nothing until
|
|
1033
|
+
// one has come.
|
|
1034
|
+
return (this.completionsSeen &&
|
|
1035
|
+
this.presented.sums[SUM_RECORDS] > this.completed.sums[SUM_RECORDS]);
|
|
1036
|
+
}
|
|
1037
|
+
/** The frame budget, in µs, from the refresh rate that the thread that draws measured. */
|
|
1038
|
+
budgetUs() {
|
|
1039
|
+
return Math.round(1_000_000 / checkTargetFps(this.refresh.hz, this.maxTargetHz));
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* The governor's clock at `now`, a reading of the frame loop's clock, in whole ms. When it
|
|
1043
|
+
* reaches its limit, its origin moves forward, and the clock reads just past the longest span
|
|
1044
|
+
* that the rules compare.
|
|
1045
|
+
*/
|
|
1046
|
+
clock(now) {
|
|
1047
|
+
const { times } = this;
|
|
1048
|
+
const clock = Math.round(now - times[2]);
|
|
1049
|
+
if (clock < CLOCK_LIMIT_MS)
|
|
1050
|
+
return clock;
|
|
1051
|
+
const by = clock - CLOCK_KEPT_MS;
|
|
1052
|
+
this.governor.moveOrigin(by);
|
|
1053
|
+
times[2] = times[2] + by;
|
|
1054
|
+
return CLOCK_KEPT_MS;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* The time `by` ms before `time`, and at least 0. -1, which marks a time that has not happened,
|
|
1059
|
+
* stays.
|
|
1060
|
+
*/
|
|
1061
|
+
function earlier(time, by) {
|
|
1062
|
+
return time < 0 ? time : Math.max(0, time - by);
|
|
1063
|
+
}
|