@woosh/meep-engine 2.168.1 → 2.169.1
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/README.md +2 -2
- package/build/bundle-worker-image-decoder.js +1 -1
- package/editor/process/symbolic/make3DSymbolicDisplay.js +1 -1
- package/editor/view/ecs/EntityList.js +1 -1
- package/editor/view/ecs/components/particles/ParticleLayerController.js +1 -1
- package/editor/view/makeEntityDecorators.js +1 -1
- package/package.json +1 -1
- package/src/REVIEW_2026_08_06/adv-core.md +511 -0
- package/src/REVIEW_2026_08_06/adv-gfx.md +480 -0
- package/src/REVIEW_2026_08_06/adv-view.md +446 -0
- package/src/REVIEW_2026_08_06/api-core.md +296 -0
- package/src/REVIEW_2026_08_06/api-engine.md +195 -0
- package/src/REVIEW_2026_08_06/bvh-phys-sound-net.md +507 -0
- package/src/REVIEW_2026_08_06/core-binary.md +348 -0
- package/src/REVIEW_2026_08_06/core-collection.md +376 -0
- package/src/REVIEW_2026_08_06/core-math.md +221 -0
- package/src/REVIEW_2026_08_06/core-process.md +266 -0
- package/src/REVIEW_2026_08_06/core-science.md +223 -0
- package/src/REVIEW_2026_08_06/engine-ai-nav.md +279 -0
- package/src/REVIEW_2026_08_06/engine-animation.md +167 -0
- package/src/REVIEW_2026_08_06/engine-asset.md +166 -0
- package/src/REVIEW_2026_08_06/engine-ecs.md +920 -0
- package/src/REVIEW_2026_08_06/engine-input.md +197 -0
- package/src/REVIEW_2026_08_06/engine-misc.md +248 -0
- package/src/REVIEW_2026_08_06/engine-terrain.md +52 -0
- package/src/REVIEW_2026_08_06/generation.md +176 -0
- package/src/REVIEW_2026_08_06/geom-2d.md +434 -0
- package/src/REVIEW_2026_08_06/geom-3d.md +117 -0
- package/src/REVIEW_2026_08_06/gfx-gi.md +143 -0
- package/src/REVIEW_2026_08_06/gfx-render.md +740 -0
- package/src/REVIEW_2026_08_06/gfx-texture.md +690 -0
- package/src/REVIEW_2026_08_06/prior-criticals.md +49 -0
- package/src/REVIEW_2026_08_06/prior-highs.md +138 -0
- package/src/REVIEW_2026_08_06/test-gaps.md +364 -0
- package/src/REVIEW_2026_08_06/view.md +667 -0
- package/src/REVIEW_2026_08_06.md +610 -0
- package/src/core/IdPool.d.ts +2 -2
- package/src/core/IdPool.d.ts.map +1 -1
- package/src/core/IdPool.js +1 -1
- package/src/core/binary/32BitEncoder.d.ts +2 -3
- package/src/core/binary/32BitEncoder.d.ts.map +1 -1
- package/src/core/binary/32BitEncoder.js +1 -1
- package/src/core/binary/BinaryBuffer.d.ts.map +1 -1
- package/src/core/binary/BinaryBuffer.js +12 -1
- package/src/core/binary/BitImage2.d.ts +5 -1
- package/src/core/binary/BitImage2.d.ts.map +1 -1
- package/src/core/binary/BitImage2.js +5 -1
- package/src/core/bvh2/bvh3/BVH.d.ts +2 -2
- package/src/core/bvh2/bvh3/BVH.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/BVH.js +1 -1
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point_filtered.d.ts +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point_filtered.d.ts.map +1 -1
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point_filtered.js +86 -86
- package/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.d.ts +2 -2
- package/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.d.ts.map +1 -1
- package/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.js +1 -1
- package/src/core/bvh8/build/NodeProxy.d.ts.map +1 -1
- package/src/core/bvh8/build/NodeProxy.js +314 -308
- package/src/core/cache/Cache.d.ts +4 -4
- package/src/core/cache/Cache.d.ts.map +1 -1
- package/src/core/cache/Cache.js +3 -3
- package/src/core/cache/LoadingCache.d.ts +1 -1
- package/src/core/cache/LoadingCache.js +2 -2
- package/src/core/cache/wtinylfu/CacheWTinylfu.d.ts +2 -2
- package/src/core/cache/wtinylfu/CacheWTinylfu.js +2 -2
- package/src/core/collection/array/array_index_by_equality.d.ts +2 -2
- package/src/core/collection/array/array_index_by_equality.d.ts.map +1 -1
- package/src/core/collection/array/array_index_by_equality.js +1 -1
- package/src/core/collection/array/array_pick_best_element.d.ts +2 -2
- package/src/core/collection/array/array_pick_best_element.d.ts.map +1 -1
- package/src/core/collection/array/array_pick_best_element.js +1 -1
- package/src/core/collection/array/array_pick_best_elements.d.ts +2 -2
- package/src/core/collection/array/array_pick_best_elements.d.ts.map +1 -1
- package/src/core/collection/array/array_pick_best_elements.js +1 -1
- package/src/core/collection/array/array_set_diff.d.ts +2 -3
- package/src/core/collection/array/array_set_diff.d.ts.map +1 -1
- package/src/core/collection/array/array_set_diff.js +1 -1
- package/src/core/collection/array/array_set_diff_sorting.d.ts +2 -2
- package/src/core/collection/array/array_set_diff_sorting.d.ts.map +1 -1
- package/src/core/collection/array/array_set_diff_sorting.js +1 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts +2 -1
- package/src/core/collection/array/iterator/ArrayIteratorRandom.d.ts.map +1 -1
- package/src/core/collection/heap/BinaryHeap.d.ts +2 -2
- package/src/core/collection/heap/BinaryHeap.d.ts.map +1 -1
- package/src/core/collection/heap/BinaryHeap.js +1 -1
- package/src/core/collection/list/List.d.ts +32 -17
- package/src/core/collection/list/List.d.ts.map +1 -1
- package/src/core/collection/list/List.js +43 -9
- package/src/core/collection/list/SortedListProjection.d.ts.map +1 -1
- package/src/core/collection/list/SortedListProjection.js +4 -1
- package/src/core/collection/map/BiMap.d.ts +25 -2
- package/src/core/collection/map/BiMap.d.ts.map +1 -1
- package/src/core/collection/map/BiMap.js +57 -3
- package/src/core/collection/map/HashMap.d.ts +2 -2
- package/src/core/collection/map/HashMap.d.ts.map +1 -1
- package/src/core/collection/map/HashMap.js +1 -1
- package/src/core/collection/set/ArraySet.d.ts +2 -2
- package/src/core/collection/set/ArraySet.d.ts.map +1 -1
- package/src/core/collection/set/ArraySet.js +1 -1
- package/src/core/collection/table/RowFirstTable.d.ts +2 -2
- package/src/core/collection/table/RowFirstTable.d.ts.map +1 -1
- package/src/core/collection/table/RowFirstTable.js +1 -1
- package/src/core/collection/table/RowFirstTableSpec.js +4 -4
- package/src/core/debug/matchers/IsAnything.d.ts.map +1 -1
- package/src/core/debug/matchers/IsAnything.js +5 -1
- package/src/core/events/signal/Signal.d.ts.map +1 -1
- package/src/core/events/signal/Signal.js +3 -1
- package/src/core/fsm/simple/SimpleStateMachineDescription.d.ts +2 -2
- package/src/core/fsm/simple/SimpleStateMachineDescription.d.ts.map +1 -1
- package/src/core/fsm/simple/SimpleStateMachineDescription.js +1 -1
- package/src/core/geom/2d/bvh/BVH2D.d.ts +2 -2
- package/src/core/geom/2d/bvh/BVH2D.d.ts.map +1 -1
- package/src/core/geom/2d/bvh/BVH2D.js +1 -1
- package/src/core/geom/2d/polygon/TRIANGULATION_DESIGN.md +433 -0
- package/src/core/geom/2d/polygon/polygon2_is_counter_clockwise.d.ts +31 -0
- package/src/core/geom/2d/polygon/polygon2_is_counter_clockwise.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_is_counter_clockwise.js +84 -0
- package/src/core/geom/2d/polygon/polygon2_signed_area.d.ts +24 -2
- package/src/core/geom/2d/polygon/polygon2_signed_area.d.ts.map +1 -1
- package/src/core/geom/2d/polygon/polygon2_signed_area.js +52 -34
- package/src/core/geom/2d/polygon/polygon2_triangulate.corpus.d.ts +28 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.corpus.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.corpus.js +86 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.d.ts +40 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_triangulate.js +1280 -0
- package/src/core/geom/2d/polygon/polygon2_triangulation_deviation.d.ts +28 -0
- package/src/core/geom/2d/polygon/polygon2_triangulation_deviation.d.ts.map +1 -0
- package/src/core/geom/2d/polygon/polygon2_triangulation_deviation.js +77 -0
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.d.ts +2 -2
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/qt_match_data_by_circle.js +1 -1
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts +2 -2
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.d.ts.map +1 -1
- package/src/core/geom/2d/quad-tree/qt_query_data_raycast.js +1 -1
- package/src/core/geom/2d/triangle/tri2_rasterize_conservative.d.ts +6 -3
- package/src/core/geom/2d/triangle/tri2_rasterize_conservative.d.ts.map +1 -1
- package/src/core/geom/2d/triangle/tri2_rasterize_conservative.js +26 -13
- package/src/core/geom/2d/triangle/tri2_signed_area.d.ts +17 -1
- package/src/core/geom/2d/triangle/tri2_signed_area.d.ts.map +1 -1
- package/src/core/geom/2d/triangle/tri2_signed_area.js +35 -23
- package/src/core/geom/2d/v2_morton_encode.d.ts +20 -0
- package/src/core/geom/2d/v2_morton_encode.d.ts.map +1 -0
- package/src/core/geom/2d/v2_morton_encode.js +23 -0
- package/src/core/geom/3d/aabb/AABB3.d.ts +2 -2
- package/src/core/geom/3d/aabb/AABB3.d.ts.map +1 -1
- package/src/core/geom/3d/aabb/AABB3.js +1 -1
- package/src/core/geom/3d/atlas/segment/atlas_merge_charts.d.ts.map +1 -1
- package/src/core/geom/3d/atlas/segment/atlas_merge_charts.js +4 -1
- package/src/core/geom/3d/polygon/polygon3_compute_normal.d.ts +27 -0
- package/src/core/geom/3d/polygon/polygon3_compute_normal.d.ts.map +1 -0
- package/src/core/geom/3d/polygon/polygon3_compute_normal.js +60 -0
- package/src/core/geom/3d/polygon/polygon3_triangulate.d.ts +34 -0
- package/src/core/geom/3d/polygon/polygon3_triangulate.d.ts.map +1 -0
- package/src/core/geom/3d/polygon/polygon3_triangulate.js +94 -0
- package/src/core/geom/3d/quaternion/quat3_multiply.d.ts +8 -2
- package/src/core/geom/3d/quaternion/quat3_multiply.d.ts.map +1 -1
- package/src/core/geom/3d/quaternion/quat3_multiply.js +8 -2
- package/src/core/geom/3d/shape/ConvexHullShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/ConvexHullShape3D.js +32 -2
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts +2 -2
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/TetrahedralMesh.js +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/push_boundary_with_validation.d.ts +2 -5
- package/src/core/geom/3d/tetrahedra/delaunay/debug/push_boundary_with_validation.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/push_boundary_with_validation.js +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/validate_cavity_boundary.d.ts +2 -2
- package/src/core/geom/3d/tetrahedra/delaunay/debug/validate_cavity_boundary.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/delaunay/debug/validate_cavity_boundary.js +1 -1
- package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.d.ts +2 -3
- package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/validate_tetrahedral_mesh.js +69 -69
- package/src/core/geom/3d/tetrahedra/validate_tetrahedron_neighbourhood.d.ts +2 -3
- package/src/core/geom/3d/tetrahedra/validate_tetrahedron_neighbourhood.d.ts.map +1 -1
- package/src/core/geom/3d/tetrahedra/validate_tetrahedron_neighbourhood.js +50 -50
- package/src/core/geom/3d/topology/struct/TopoEdge.d.ts +2 -2
- package/src/core/geom/3d/topology/struct/TopoEdge.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoEdge.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoMesh.d.ts +2 -3
- package/src/core/geom/3d/topology/struct/TopoMesh.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoMesh.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoTriangle.d.ts +2 -2
- package/src/core/geom/3d/topology/struct/TopoTriangle.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoTriangle.js +1 -1
- package/src/core/geom/3d/topology/struct/TopoVertex.d.ts +2 -2
- package/src/core/geom/3d/topology/struct/TopoVertex.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/TopoVertex.js +1 -1
- package/src/core/geom/3d/topology/struct/binary/io/face/bt_face_triangulate.d.ts +23 -6
- package/src/core/geom/3d/topology/struct/binary/io/face/bt_face_triangulate.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/binary/io/face/bt_face_triangulate.js +268 -124
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_assert_valid.d.ts +17 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_assert_valid.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_assert_valid.js +44 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_count_edge_faces.d.ts +20 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_count_edge_faces.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_count_edge_faces.js +40 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_closed.d.ts +19 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_closed.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_closed.js +34 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_manifold.d.ts +22 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_manifold.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_is_manifold.js +37 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_validate.d.ts +87 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_validate.d.ts.map +1 -0
- package/src/core/geom/3d/topology/struct/binary/query/bt_mesh_validate.js +599 -0
- package/src/core/geom/3d/topology/util/mesh_flood_fill.d.ts +1 -1
- package/src/core/geom/3d/topology/util/mesh_flood_fill.js +1 -1
- package/src/core/geom/3d/triangle/tri3_compute_signed_volume.d.ts +32 -0
- package/src/core/geom/3d/triangle/tri3_compute_signed_volume.d.ts.map +1 -1
- package/src/core/geom/3d/triangle/tri3_compute_signed_volume.js +66 -7
- package/src/core/geom/3d/triangle/tri3_mesh_compute_signed_volume.d.ts +22 -1
- package/src/core/geom/3d/triangle/tri3_mesh_compute_signed_volume.d.ts.map +1 -1
- package/src/core/geom/3d/triangle/tri3_mesh_compute_signed_volume.js +83 -38
- package/src/core/geom/3d/util/aabb3_emit_point_grid.d.ts +2 -2
- package/src/core/geom/3d/util/aabb3_emit_point_grid.d.ts.map +1 -1
- package/src/core/geom/3d/util/aabb3_emit_point_grid.js +1 -1
- package/src/core/geom/MANIFOLD_COMPARISON_2026_08_01.md +554 -0
- package/src/core/geom/Quaternion.d.ts +2 -2
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Quaternion.js +1 -1
- package/src/core/geom/Vector1.d.ts +2 -2
- package/src/core/geom/Vector1.d.ts.map +1 -1
- package/src/core/geom/Vector1.js +1 -1
- package/src/core/geom/packing/max-rect/find_best_container.d.ts +2 -2
- package/src/core/geom/packing/max-rect/find_best_container.d.ts.map +1 -1
- package/src/core/geom/packing/max-rect/find_best_container.js +1 -1
- package/src/core/geom/vec3/v3_cotangent.d.ts +6 -2
- package/src/core/geom/vec3/v3_cotangent.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_cotangent.js +6 -2
- package/src/core/geom/vec3/v3_cross.d.ts +6 -2
- package/src/core/geom/vec3/v3_cross.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_cross.js +6 -2
- package/src/core/geom/vec3/v3_lerp.d.ts +1 -1
- package/src/core/geom/vec3/v3_lerp.js +1 -1
- package/src/core/geom/vec3/v3_multiply.d.ts +6 -2
- package/src/core/geom/vec3/v3_multiply.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_multiply.js +6 -2
- package/src/core/geom/vec3/v3_subtract.d.ts +6 -2
- package/src/core/geom/vec3/v3_subtract.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_subtract.js +6 -2
- package/src/core/json/abstractJSONSerializer.d.ts +2 -2
- package/src/core/json/abstractJSONSerializer.d.ts.map +1 -1
- package/src/core/json/abstractJSONSerializer.js +1 -1
- package/src/core/lang/reactive/AbstractCachingParser.d.ts +2 -3
- package/src/core/lang/reactive/AbstractCachingParser.d.ts.map +1 -1
- package/src/core/lang/reactive/AbstractCachingParser.js +1 -1
- package/src/core/localization/Localization.d.ts +2 -2
- package/src/core/localization/Localization.d.ts.map +1 -1
- package/src/core/localization/Localization.js +2 -2
- package/src/core/math/noise/create_simplex_noise_2d.d.ts +2 -2
- package/src/core/math/noise/create_simplex_noise_2d.d.ts.map +1 -1
- package/src/core/math/noise/create_simplex_noise_2d.js +1 -1
- package/src/core/math/physics/mie/MIE_PARTICLES_STANDARD.js +1 -1
- package/src/core/math/physics/mie/compute_mie_particle_properties_rgb.d.ts +3 -3
- package/src/core/math/physics/mie/compute_mie_particle_properties_rgb.d.ts.map +1 -1
- package/src/core/math/physics/mie/compute_mie_particle_properties_rgb.js +2 -2
- package/src/core/math/random/randomSeed.d.ts +13 -0
- package/src/core/math/random/randomSeed.d.ts.map +1 -0
- package/src/core/math/random/randomSeed.js +16 -0
- package/src/core/math/random/seededRandom_Mulberry32.d.ts +3 -2
- package/src/core/math/random/seededRandom_Mulberry32.d.ts.map +1 -1
- package/src/core/math/random/seededRandom_Mulberry32.js +1 -1
- package/src/core/math/spline/spline3_hermite_apply_transform.d.ts +50 -0
- package/src/core/math/spline/spline3_hermite_apply_transform.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_apply_transform.js +107 -0
- package/src/core/math/spline/spline3_hermite_reverse.d.ts +34 -0
- package/src/core/math/spline/spline3_hermite_reverse.d.ts.map +1 -0
- package/src/core/math/spline/spline3_hermite_reverse.js +49 -0
- package/src/core/math/statistics/hammersley_sequence.d.ts +17 -4
- package/src/core/math/statistics/hammersley_sequence.d.ts.map +1 -1
- package/src/core/math/statistics/hammersley_sequence.js +25 -16
- package/src/core/model/ModuleRegistry.d.ts +2 -2
- package/src/core/model/ModuleRegistry.d.ts.map +1 -1
- package/src/core/model/ModuleRegistry.js +1 -1
- package/src/core/model/node-graph/json/serializeNodeGraphToJSON.d.ts +1 -1
- package/src/core/model/node-graph/json/serializeNodeGraphToJSON.js +2 -2
- package/src/core/model/object/objectDeepEquals.d.ts +2 -2
- package/src/core/model/object/objectDeepEquals.d.ts.map +1 -1
- package/src/core/model/object/objectDeepEquals.js +1 -1
- package/src/core/model/reactive/model/ReactiveExpression.d.ts +2 -2
- package/src/core/model/reactive/model/ReactiveExpression.d.ts.map +1 -1
- package/src/core/model/reactive/model/ReactiveExpression.js +1 -1
- package/src/core/model/validate_enum_schema.d.ts +2 -3
- package/src/core/model/validate_enum_schema.d.ts.map +1 -1
- package/src/core/model/validate_enum_schema.js +1 -1
- package/src/core/process/Future.d.ts +3 -3
- package/src/core/process/Future.d.ts.map +1 -1
- package/src/core/process/Future.js +13 -1
- package/src/core/process/PromiseWatcher.d.ts.map +1 -1
- package/src/core/process/PromiseWatcher.js +9 -2
- package/src/core/process/executor/ConcurrentExecutor.d.ts.map +1 -1
- package/src/core/process/executor/ConcurrentExecutor.js +12 -2
- package/src/core/process/task/Task.d.ts +3 -3
- package/src/core/process/task/Task.d.ts.map +1 -1
- package/src/core/process/task/Task.js +2 -2
- package/src/core/process/task/util/countTask.d.ts +2 -2
- package/src/core/process/task/util/countTask.d.ts.map +1 -1
- package/src/core/process/task/util/countTask.js +1 -1
- package/src/core/process/task/util/randomCountTask.d.ts +2 -2
- package/src/core/process/task/util/randomCountTask.d.ts.map +1 -1
- package/src/core/process/task/util/randomCountTask.js +1 -1
- package/src/core/process/worker/WorkerProxy.d.ts.map +1 -1
- package/src/core/process/worker/WorkerProxy.js +5 -2
- package/src/core/process/worker/extractTransferables.d.ts.map +1 -1
- package/src/core/process/worker/extractTransferables.js +4 -1
- package/src/engine/Engine.d.ts +12 -12
- package/src/engine/Engine.d.ts.map +1 -1
- package/src/engine/Engine.js +149 -10
- package/src/engine/animation/Animations.d.ts +4 -4
- package/src/engine/animation/Animations.d.ts.map +1 -1
- package/src/engine/animation/Animations.js +2 -2
- package/src/engine/animation/EntityAnimation.d.ts +5 -5
- package/src/engine/animation/EntityAnimation.d.ts.map +1 -1
- package/src/engine/animation/EntityAnimation.js +2 -2
- package/src/engine/animation/TransitionFunctions.d.ts +1 -4
- package/src/engine/animation/TransitionFunctions.d.ts.map +1 -1
- package/src/engine/animation/TransitionFunctions.js +1 -1
- package/src/engine/animation/Tween.d.ts +4 -4
- package/src/engine/animation/Tween.d.ts.map +1 -1
- package/src/engine/animation/Tween.js +2 -2
- package/src/engine/asset/AssetManager.d.ts +6 -6
- package/src/engine/asset/AssetManager.d.ts.map +1 -1
- package/src/engine/asset/AssetManager.js +1411 -1411
- package/src/engine/asset/AssetRequest.d.ts +4 -4
- package/src/engine/asset/AssetRequest.d.ts.map +1 -1
- package/src/engine/asset/AssetRequest.js +3 -3
- package/src/engine/asset/loaders/ArrayBufferLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/ArrayBufferLoader.js +7 -0
- package/src/engine/asset/loaders/AssetLoader.d.ts +3 -3
- package/src/engine/asset/loaders/AssetLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/AssetLoader.js +2 -2
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts +0 -10
- package/src/engine/control/first-person/FirstPersonPlayerControllerSystem.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.d.ts +6 -6
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +3 -3
- package/src/engine/ecs/EntityManager.d.ts +4 -4
- package/src/engine/ecs/EntityManager.js +4 -4
- package/src/engine/ecs/EntityObserver.d.ts +3 -3
- package/src/engine/ecs/EntityObserver.d.ts.map +1 -1
- package/src/engine/ecs/EntityObserver.js +2 -2
- package/src/engine/ecs/System.d.ts +4 -4
- package/src/engine/ecs/System.d.ts.map +1 -1
- package/src/engine/ecs/System.js +2 -2
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.d.ts +2 -3
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.d.ts.map +1 -1
- package/src/engine/ecs/dynamic_actions/DynamicActorSystem.js +1 -1
- package/src/engine/ecs/grid/pick.d.ts +4 -2
- package/src/engine/ecs/grid/pick.d.ts.map +1 -1
- package/src/engine/ecs/grid/pick.js +1 -1
- package/src/engine/ecs/parent/EntityNode.d.ts +4 -4
- package/src/engine/ecs/parent/EntityNode.d.ts.map +1 -1
- package/src/engine/ecs/parent/EntityNode.js +2 -2
- package/src/engine/ecs/speaker/lines/sets/LineSetDescription.d.ts.map +1 -1
- package/src/engine/ecs/speaker/lines/sets/LineSetDescription.js +3 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.d.ts +2 -2
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.d.ts.map +1 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionDeSerializer.js +1 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionHeaderCodec.d.ts +1 -2
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionHeaderCodec.d.ts.map +1 -1
- package/src/engine/ecs/systems/AnimationSystem.d.ts +0 -5
- package/src/engine/ecs/systems/AnimationSystem.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/TerrainSystem.d.ts +2 -2
- package/src/engine/ecs/terrain/ecs/TerrainSystem.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/TerrainSystem.js +5 -2
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts +34 -5
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts.map +1 -1
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.js +87 -26
- package/src/engine/ecs/terrain/util/obtainTerrain.d.ts +2 -3
- package/src/engine/ecs/terrain/util/obtainTerrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/util/obtainTerrain.js +1 -1
- package/src/engine/ecs/util/hideEntityGracefully.js +2 -2
- package/src/engine/graphics/CONTEXT_LOSS_RECOVERY_PLAN.md +446 -0
- package/src/engine/graphics/FrameRunner.d.ts +2 -2
- package/src/engine/graphics/FrameRunner.d.ts.map +1 -1
- package/src/engine/graphics/FrameRunner.js +1 -1
- package/src/engine/graphics/GraphicsEngine.d.ts +60 -9
- package/src/engine/graphics/GraphicsEngine.d.ts.map +1 -1
- package/src/engine/graphics/GraphicsEngine.js +197 -25
- package/src/engine/graphics/camera/CameraShake.d.ts +6 -6
- package/src/engine/graphics/camera/CameraShake.d.ts.map +1 -1
- package/src/engine/graphics/context/WebGLContextFailureReason.d.ts +9 -0
- package/src/engine/graphics/context/WebGLContextFailureReason.d.ts.map +1 -0
- package/src/engine/graphics/context/WebGLContextFailureReason.js +17 -0
- package/src/engine/graphics/context/WebGLContextMonitor.d.ts +106 -0
- package/src/engine/graphics/context/WebGLContextMonitor.d.ts.map +1 -0
- package/src/engine/graphics/context/WebGLContextMonitor.js +341 -0
- package/src/engine/graphics/context/WebGLContextState.d.ts +14 -0
- package/src/engine/graphics/context/WebGLContextState.d.ts.map +1 -0
- package/src/engine/graphics/context/WebGLContextState.js +24 -0
- package/src/engine/graphics/context/testWebGLContextLoss.d.ts +2 -0
- package/src/engine/graphics/context/testWebGLContextLoss.d.ts.map +1 -0
- package/src/engine/graphics/context/testWebGLContextLoss.js +696 -0
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts +2 -2
- package/src/engine/graphics/ecs/camera/CameraSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/CameraSystem.js +1 -1
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationAdapter.js +68 -32
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.d.ts +14 -0
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.d.ts.map +1 -0
- package/src/engine/graphics/ecs/camera/serialization/CameraSerializationUpgrader_0_1.js +41 -0
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.d.ts +2 -3
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.js +2 -2
- package/src/engine/graphics/ecs/light/three/ThreeLightCache.d.ts +1 -1
- package/src/engine/graphics/ecs/light/three/ThreeLightCache.js +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts +4 -5
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.js +7 -2
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2DSystem.js +2 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts +1 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail3d/Trail3DSystem.js +3 -5
- package/src/engine/graphics/geometry/MikkT/BuildNeighborsFast.d.ts.map +1 -1
- package/src/engine/graphics/geometry/MikkT/BuildNeighborsFast.js +3 -2
- package/src/engine/graphics/geometry/MikkT/GenerateSharedVerticesIndexList.d.ts.map +1 -1
- package/src/engine/graphics/geometry/MikkT/GenerateSharedVerticesIndexList.js +3 -1
- package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.d.ts +2 -2
- package/src/engine/graphics/geometry/computeBoundingSphereFromVertexData.js +1 -1
- package/src/engine/graphics/geometry/computeMeshSurfaceArea.js +1 -1
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts +2 -2
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.d.ts.map +1 -1
- package/src/engine/graphics/geometry/instancing/InstancedMeshGroup.js +1 -1
- package/src/engine/graphics/geometry/ribbon/Ribbon.d.ts +2 -2
- package/src/engine/graphics/geometry/ribbon/Ribbon.d.ts.map +1 -1
- package/src/engine/graphics/geometry/ribbon/Ribbon.js +1 -1
- package/src/engine/graphics/load_and_set_cubemap_v0.d.ts +5 -0
- package/src/engine/graphics/load_and_set_cubemap_v0.d.ts.map +1 -1
- package/src/engine/graphics/load_and_set_cubemap_v0.js +26 -21
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts +2 -2
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts +2 -2
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/emitter/computeEmissionFunction.js +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts +2 -2
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/engine/utils/distrubuteParticlesOnMesh.js +1 -1
- package/src/engine/graphics/particles/particular/group/ParticleGroup.d.ts.map +1 -1
- package/src/engine/graphics/particles/particular/group/ParticleGroup.js +19 -8
- package/src/engine/graphics/particles/particular/group/optimizeCommandQueue.js +1 -1
- package/src/engine/graphics/render/RendererPool.d.ts +4 -4
- package/src/engine/graphics/render/RendererPool.d.ts.map +1 -1
- package/src/engine/graphics/render/RendererPool.js +2 -2
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts +5 -4
- package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts.map +1 -1
- package/src/engine/graphics/render/frame_graph/FrameGraph.js +2 -2
- package/src/engine/graphics/render/layers/RenderLayer.d.ts +2 -2
- package/src/engine/graphics/render/layers/RenderLayer.d.ts.map +1 -1
- package/src/engine/graphics/render/layers/RenderLayer.js +1 -1
- package/src/engine/graphics/render/layers/RenderLayerUtils.js +1 -1
- package/src/engine/graphics/sh3/lightmap/bake_lightmap_for_scene.d.ts +3 -1
- package/src/engine/graphics/sh3/lightmap/bake_lightmap_for_scene.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lightmap/bake_lightmap_for_scene.js +681 -681
- package/src/engine/graphics/sh3/lightmap/lightmap_rasterize_triangle.d.ts +2 -2
- package/src/engine/graphics/sh3/lightmap/lightmap_rasterize_triangle.d.ts.map +1 -1
- package/src/engine/graphics/sh3/lightmap/lightmap_rasterize_triangle.js +145 -145
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.d.ts +2 -1
- package/src/engine/graphics/sh3/lpv/PathTracerProbeRenderer.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/AtlasLookupTexture.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/AtlasLookupTexture.js +10 -3
- package/src/engine/graphics/texture/atlas/TextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/TextureAtlas.js +4 -1
- package/src/engine/graphics/texture/atlas/gpu/WebGLTextureAtlas.d.ts.map +1 -1
- package/src/engine/graphics/texture/atlas/gpu/WebGLTextureAtlas.js +11 -0
- package/src/engine/graphics/texture/cubemap/load_environment_map.d.ts.map +1 -1
- package/src/engine/graphics/texture/cubemap/load_environment_map.js +5 -2
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts +2 -2
- package/src/engine/graphics/texture/sampler/Sampler2D.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/Sampler2D.js +1 -1
- package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_Chamfer.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/distance/computeSignedDistanceField_Chamfer.js +26 -18
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.d.ts +15 -2
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.js +29 -3
- package/src/engine/graphics/texture/sampler/resize/sampler2d_scale_down_lanczos.d.ts +14 -1
- package/src/engine/graphics/texture/sampler/resize/sampler2d_scale_down_lanczos.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/resize/sampler2d_scale_down_lanczos.js +148 -171
- package/src/engine/graphics/texture/sampler/sampler2d_combine.d.ts +2 -2
- package/src/engine/graphics/texture/sampler/sampler2d_combine.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/sampler2d_combine.js +1 -1
- package/src/engine/graphics/texture/sampler/sampler2d_paint.js +1 -1
- package/src/engine/graphics/texture/sampler/util/bitSet2Sampler2D.js +2 -2
- package/src/engine/graphics/texture/virtual/VirtualTextureTileLoader.d.ts +1 -1
- package/src/engine/graphics/texture/virtual/VirtualTextureTileLoader.js +2 -2
- package/src/engine/grid/obstacle/GridObstacle.d.ts +2 -2
- package/src/engine/grid/obstacle/GridObstacle.d.ts.map +1 -1
- package/src/engine/grid/obstacle/GridObstacle.js +1 -1
- package/src/engine/input/ecs/util/TopDownCameraControllerHelper.d.ts.map +1 -1
- package/src/engine/input/ecs/util/TopDownCameraControllerHelper.js +10 -3
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts +2 -2
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/ecs/BehaviorComponent.js +1 -1
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.d.ts +3 -3
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/behavior/primitive/ActionBehavior.js +1 -1
- package/src/engine/intelligence/behavior/util/RandomDelayBehavior.d.ts +2 -1
- package/src/engine/intelligence/behavior/util/RandomDelayBehavior.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/Blackboard.d.ts +4 -4
- package/src/engine/intelligence/blackboard/Blackboard.d.ts.map +1 -1
- package/src/engine/intelligence/blackboard/Blackboard.js +2 -2
- package/src/engine/intelligence/mcts/MonteCarlo.d.ts +17 -15
- package/src/engine/intelligence/mcts/MonteCarlo.d.ts.map +1 -1
- package/src/engine/intelligence/mcts/MonteCarlo.js +345 -345
- package/src/engine/intelligence/mcts/StateNode.d.ts +2 -2
- package/src/engine/intelligence/mcts/StateNode.d.ts.map +1 -1
- package/src/engine/intelligence/mcts/StateNode.js +364 -364
- package/src/engine/intelligence/optimization/RandomOptimizer.d.ts +3 -3
- package/src/engine/intelligence/optimization/RandomOptimizer.d.ts.map +1 -1
- package/src/engine/intelligence/optimization/RandomOptimizer.js +2 -2
- package/src/engine/intelligence/optimization/optimize_cyclic_sequence_pairwise.d.ts +2 -2
- package/src/engine/intelligence/optimization/optimize_cyclic_sequence_pairwise.d.ts.map +1 -1
- package/src/engine/intelligence/optimization/optimize_cyclic_sequence_pairwise.js +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.d.ts +4 -5
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.d.ts.map +1 -1
- package/src/engine/knowledge/database/StaticKnowledgeDataTable.js +2 -2
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.d.ts +14 -0
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.d.ts.map +1 -0
- package/src/engine/navigation/ecs/components/PathSerializationUpgrader_2_3.js +38 -0
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts +0 -5
- package/src/engine/navigation/ecs/path_following/PathFollowingSystem.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeClient.js +433 -425
- package/src/engine/physics/constraint/solve_constraints.d.ts +4 -1
- package/src/engine/physics/constraint/solve_constraints.d.ts.map +1 -1
- package/src/engine/physics/constraint/solve_constraints.js +38 -13
- package/src/engine/physics/contact/ManifoldStore.d.ts +15 -3
- package/src/engine/physics/contact/ManifoldStore.d.ts.map +1 -1
- package/src/engine/physics/contact/ManifoldStore.js +15 -3
- package/src/engine/physics/ecs/Joint.d.ts +7 -4
- package/src/engine/physics/ecs/Joint.d.ts.map +1 -1
- package/src/engine/physics/ecs/Joint.js +7 -4
- package/src/engine/physics/ecs/PhysicsSystem.d.ts +14 -0
- package/src/engine/physics/ecs/PhysicsSystem.d.ts.map +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.js +16 -0
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -8
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts +3 -7
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/convex_convex_manifold.d.ts +15 -7
- package/src/engine/physics/narrowphase/convex_convex_manifold.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/convex_convex_manifold.js +33 -10
- package/src/engine/physics/narrowphase/refine_ray_concave.d.ts +6 -2
- package/src/engine/physics/narrowphase/refine_ray_concave.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/refine_ray_concave.js +6 -2
- package/src/engine/physics/narrowphase/refine_ray_hit.d.ts +6 -2
- package/src/engine/physics/narrowphase/refine_ray_hit.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/refine_ray_hit.js +6 -2
- package/src/engine/physics/queries/raycast.d.ts.map +1 -1
- package/src/engine/physics/queries/raycast.js +11 -4
- package/src/engine/save/GameStateLoader.d.ts +2 -2
- package/src/engine/save/GameStateLoader.d.ts.map +1 -1
- package/src/engine/save/GameStateLoader.js +1 -1
- package/src/engine/save/Storage.d.ts +4 -4
- package/src/engine/save/Storage.d.ts.map +1 -1
- package/src/engine/save/Storage.js +2 -2
- package/src/engine/save/storage/IndexedDBStorage.d.ts.map +1 -1
- package/src/engine/save/storage/IndexedDBStorage.js +24 -5
- package/src/engine/simulation/Ticker.d.ts +12 -0
- package/src/engine/simulation/Ticker.d.ts.map +1 -1
- package/src/engine/simulation/Ticker.js +18 -0
- package/src/engine/sound/simulation/AcousticSimulator.d.ts.map +1 -1
- package/src/engine/sound/simulation/AcousticSimulator.js +9 -1
- package/src/engine/sound/simulation/core/VolumeField.d.ts +6 -2
- package/src/engine/sound/simulation/core/VolumeField.d.ts.map +1 -1
- package/src/engine/sound/simulation/core/VolumeField.js +6 -2
- package/src/engine/sound/simulation/probe/AcousticProbeField.d.ts +6 -2
- package/src/engine/sound/simulation/probe/AcousticProbeField.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/AcousticProbeField.js +6 -2
- package/src/engine/sound/simulation/probe/acoustic_probe_transfer.d.ts +6 -2
- package/src/engine/sound/simulation/probe/acoustic_probe_transfer.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/acoustic_probe_transfer.js +6 -2
- package/src/engine/sound/simulation/probe/bakeProbeReflectors.d.ts +3 -1
- package/src/engine/sound/simulation/probe/bakeProbeReflectors.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/bakeProbeReflectors.js +3 -1
- package/src/engine/sound/simulation/prototypeAcousticSolver.js +1652 -1652
- package/src/engine/sound/sopra/util/buildAttenuationCurve.d.ts +2 -2
- package/src/engine/sound/sopra/util/buildAttenuationCurve.d.ts.map +1 -1
- package/src/engine/sound/sopra/util/buildAttenuationCurve.js +40 -40
- package/src/engine/ui/GUIEngine.d.ts.map +1 -1
- package/src/engine/ui/GUIEngine.js +8 -1
- package/src/engine/ui/notification/NotificationManager.d.ts +5 -5
- package/src/engine/ui/notification/NotificationManager.d.ts.map +1 -1
- package/src/engine/ui/notification/NotificationManager.js +4 -4
- package/src/engine/ui/tiles2d/TileGrid.d.ts +2 -2
- package/src/engine/ui/tiles2d/TileGrid.d.ts.map +1 -1
- package/src/engine/ui/tiles2d/TileGrid.js +1 -1
- package/src/generation/filtering/numeric/complex/CellFilterSimplexNoise.d.ts +1 -1
- package/src/generation/filtering/numeric/complex/CellFilterSimplexNoise.js +1 -1
- package/src/generation/grid/generation/road/GridTaskGenerateRoads.js +2 -2
- package/src/generation/grid/generation/util/buildPathFromDistanceMap.d.ts +1 -1
- package/src/generation/grid/generation/util/buildPathFromDistanceMap.js +1 -1
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.d.ts +2 -1
- package/src/generation/markers/actions/placement/MarkerNodeEntityProcessorRandomRotation.d.ts.map +1 -1
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.d.ts +2 -1
- package/src/generation/markers/actions/probability/MarkerNodeActionSelectWeighted.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.d.ts +2 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts +4 -3
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordPropertyClosure.js +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts +2 -1
- package/src/generation/markers/transform/MarkerNodeTransformerRecordUniqueRandomEnum.d.ts.map +1 -1
- package/src/generation/theme/TerrainTheme.d.ts.map +1 -1
- package/src/generation/theme/TerrainTheme.js +2 -1
- package/src/generation/theme/ThemeEngine.d.ts.map +1 -1
- package/src/generation/theme/ThemeEngine.js +6 -5
- package/src/view/ViewGroup.d.ts.map +1 -1
- package/src/view/ViewGroup.js +9 -7
- package/src/view/common/VirtualListView.d.ts +1 -1
- package/src/view/common/VirtualListView.js +1 -1
- package/src/view/graphics/WebGLContextFailureView.d.ts +19 -0
- package/src/view/graphics/WebGLContextFailureView.d.ts.map +1 -0
- package/src/view/graphics/WebGLContextFailureView.js +76 -0
- package/src/view/minimap/Minimap.d.ts +8 -0
- package/src/view/minimap/Minimap.d.ts.map +1 -1
- package/src/view/minimap/Minimap.js +16 -3
- package/src/view/minimap/dom/MinimapMarkerView.d.ts.map +1 -1
- package/src/view/minimap/dom/MinimapMarkerView.js +3 -1
- package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.d.ts +2 -2
- package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.d.ts.map +1 -1
- package/src/view/tooltip/gml/compiler/GMLReferenceCompiler.js +1 -1
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
# Targeted correctness review — bvh2 / bvh8 / physics / sound / network
|
|
2
|
+
|
|
3
|
+
Scope: `core/bvh2`, `core/bvh8`, and — for `engine/physics`, `engine/sound`, `engine/network` —
|
|
4
|
+
the files with no adjacent `<name>.spec.js`, plus the ECS-facing bridge, the WebAudio rendering
|
|
5
|
+
edge, and the transport/session boundary.
|
|
6
|
+
|
|
7
|
+
Known-good areas were not re-opened (solver core, narrowphase, fluid MAC, acoustic simulator,
|
|
8
|
+
seq/ack math, slot tables, bvh8 review-01 contracts, bvh2 `ebvh_sort`/`swap_nodes`).
|
|
9
|
+
|
|
10
|
+
Already-reported items excluded: `FragmentAssembler.js:59` 64 KiB cap vs 302 KiB sender capacity;
|
|
11
|
+
`SoundControllerSystem.js:82` log-then-dereference.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Findings
|
|
16
|
+
|
|
17
|
+
### PSN-1 AUTH_STATE reconcile gate is per-frame, not per-entity — all but one entity per frame is dropped
|
|
18
|
+
- **Severity**: CRITICAL
|
|
19
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/orchestrator/ServerAuthoritativeClient.js:332`
|
|
20
|
+
- **Defect**: `#handle_auth_state` short-circuits on `if (server_frame <= this.#last_reconciled_frame) return;` — a single scalar watermark shared by *all* entities. The host emits one AUTH_STATE **per owned entity per tick**, all tagged with the same `sim_frame`, so every entity after the first is silently discarded.
|
|
21
|
+
- **Failure scenario**: `NetworkSession.#on_host_tick_complete` (`NetworkSession.js:1376-1391`) loops every replicated entity owned by `peer_id` and calls `#send_auth_state_for_entity(peer_id, sim_frame, …)`. A client that owns two predicted entities (player + mount, or player + carried object) receives AUTH_STATE(frame=100, netid=A) then AUTH_STATE(frame=100, netid=B). A reconciles; B hits `100 <= 100` and returns before `slot_table.entity_for` is even consulted. B is **never** reconciled at any frame — the same thing happens on frame 101, 102, … So B's prediction drifts without bound and never converges to the server state.
|
|
22
|
+
- **Fix**: Make the watermark per-`network_id`: replace `#last_reconciled_frame` with a `Map<number, number>` (or a slot-indexed `Int32Array`) keyed by `network_id`, and compare/update the entry for the incoming `network_id`.
|
|
23
|
+
- **Confidence**: Confirmed
|
|
24
|
+
|
|
25
|
+
### PSN-2 Client reconnect ladder: every attempt after the first throws inside `connect()` and is swallowed
|
|
26
|
+
- **Severity**: MAJOR
|
|
27
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/NetworkSession.js:1824-1830`
|
|
28
|
+
- **Defect**: `#tick_reconnect` dials a fresh transport with `this.connect(this.#remote_peer_id, new_transport)` but never tears down the *previous* attempt's binding. `NetworkPeer.connect_peer` throws `peer N already connected` (`NetworkPeer.js:451-453`) on every attempt after the first; the throw is caught and reduced to a `console.warn`. The abandoned transport is also dropped without `disconnect()`.
|
|
29
|
+
- **Failure scenario**: Client on a connectionless transport (`NodeUDPTransport`, WebTransport datagrams) whose `onDisconnect` never fires on its own. Attempt 1 builds transport T1, connects, sends RESUME_HELLO — the datagram is lost. Attempt 2 (t+400 ms) builds T2, `connect()` throws (`peer 0 already connected`), warn, retry. Attempts 3-8 identical. Attempt 9 exceeds `max_attempts: 8` → `#permanently_lose_connection('reconnect_attempts_exhausted')`. **A single lost RESUME_HELLO packet permanently kills a session that is configured to tolerate 8 retries**, and 7 transports (7 UDP sockets) are created and leaked in the process. `NetworkSession.spec.js:900-914` asserts only on the `onReconnectAttempt` *signal* count, so it passes despite the connects failing.
|
|
30
|
+
- **Fix**: In `#tick_reconnect`, before dialing: `this.#peer.disconnect_peer(this.#remote_peer_id)` if still bound, and call `disconnect()` on `this.#current_transport` if non-null; then `connect()`. (Equivalently, factor out the teardown half of `#on_client_transport_disconnected` and call it at the top of each attempt.)
|
|
31
|
+
- **Confidence**: Confirmed
|
|
32
|
+
|
|
33
|
+
### PSN-3 A failed rewind leaves the client world partially rewound, with no replay and no repair
|
|
34
|
+
- **Severity**: MAJOR
|
|
35
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/orchestrator/ServerAuthoritativeClient.js:370-379`
|
|
36
|
+
- **Defect**: `RewindEngine.rewind_to` undoes frames one at a time (`RewindEngine.js:107-109`) and `undo_frame` throws when a frame has aged out of the ring. By then the earlier frames have **already been undone in place**. `#handle_auth_state` catches the throw and `return`s — the server bytes are not applied, no forward replay runs, and `#last_reconciled_frame` has already been advanced.
|
|
37
|
+
- **Failure scenario**: `frame_capacity = 32`, client at `#current_frame = 200` (log holds 169..200). A delayed AUTH_STATE for `server_frame = 150` arrives (latency spike / reorder). `rewind_to(200, 149)` successfully undoes 200 → 169, then `undo_frame(168)` throws. The catch swallows it and returns. The live world is now in **end-of-168** state — 32 frames of simulation silently reverted, nothing replayed forward. Every visible entity jumps backwards and the client continues simulating from the stale state.
|
|
38
|
+
- **Fix**: Validate the whole range before mutating anything: `for (let f = this.#current_frame; f > rewind_target; f--) if (!this.action_log.has_frame(f)) { /* skip reconciliation, request STATE_BURST */ return; }` — then call `rewind_to` outside the try, so a genuine engine bug still surfaces instead of being swallowed.
|
|
39
|
+
- **Confidence**: Confirmed
|
|
40
|
+
|
|
41
|
+
### PSN-4 Grace-window expiry never tears down a peer that reconnected but did not resume
|
|
42
|
+
- **Severity**: MAJOR
|
|
43
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/NetworkSession.js:1655-1664`
|
|
44
|
+
- **Defect**: `connect()`'s host path for a peer already in the grace window (`NetworkSession.js:857-869`) calls `#server.connect_peer` and `#wire_peer_transport_disconnect`, but deliberately does **not** add the peer to `#connected_peers` (it waits for RESUME_HELLO). `#expire_grace_peers` only deletes the grace entry + token and fires `onPeerPermanentlyDropped` — it never calls `#server.disconnect_peer` or `#unwire_peer_transport_disconnect`.
|
|
45
|
+
- **Failure scenario**: Peer 1 drops → grace. Client re-dials; `host_session.connect(1, T2)` runs. Its RESUME_HELLO is lost (or the client dies before sending one). 30 s later grace expires and the host reports the peer permanently dropped — but `NetworkPeer.#peers` still holds peer 1's `Channel` (still subscribed to T2's `onReceive`), the transport's `onDisconnect` listener is still installed, and `NetworkPeer.flush_outbound` (`NetworkPeer.js:838`) iterates `#peers`, **not** `#connected_peers`, so the host keeps packing and transmitting the full action stream to the ghost peer every tick forever. A later `connect(1, T3)` then throws `peer 1 already connected`.
|
|
46
|
+
- **Fix**: In `#expire_grace_peers`, before firing the signal: `if (this.#peer.is_connected(peer_id)) this.#server.disconnect_peer(peer_id); this.#unwire_peer_transport_disconnect(peer_id); this.#peer_inbound_mark.delete(peer_id); this.#pending_initial_sync.delete(peer_id);`
|
|
47
|
+
- **Confidence**: Confirmed
|
|
48
|
+
|
|
49
|
+
### PSN-5 `NetworkSession.stop()` does not tear down the network
|
|
50
|
+
- **Severity**: MAJOR
|
|
51
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/NetworkSession.js:974-988`
|
|
52
|
+
- **Defect**: `stop()` is documented as "Tear down. Idempotent — safe to call from cleanup paths." It disconnects the `EntityObserver` and removes the per-entity event listeners, but leaves every `Channel` subscribed to its transport's `onReceive`, every transport `onDisconnect` listener installed (`#peer_transport_listeners` is never walked), and `#connected_peers` / `#peer_grace_state` / `#peer_session_tokens` / `#pending_initial_sync` populated.
|
|
53
|
+
- **Failure scenario**: A host session with three connected peers is torn down at level transition via `stop()`; the caller then builds a new world + session. A datagram arriving on any of the three still-live transports still runs `Channel.onPayload → NetworkPeer.dispatch → replicator.unpack_from_peer → executor.execute`, mutating the **old, supposedly detached** `EntityComponentDataset` (and, for `net_mutate_component`, dereferencing entities the caller already destroyed). Peer transport disconnects likewise still mutate `#peer_grace_state` on the dead session. Worse on the restart path: `stop()` clears `#started`, and `start()` only rejects when `#started` is true (`NetworkSession.js:651`) — so `stop(); await start();` is permitted and constructs a *second* orchestrator and `NetworkPeer` while the first one's channels are still consuming from the same transports, and `#connected_peers` still holds the old peer ids, so the very first `#send_empty_ack_packet` calls `channel_for(peer_id).send(...)` on the *new* peer (which has no such peer) and throws `TypeError` out of `tick()`.
|
|
54
|
+
- **Fix**: In `stop()`, iterate `#connected_peers` (and `#peer_transport_listeners`) calling `#peer.disconnect_peer(id)` + `#unwire_peer_transport_disconnect(id)`, then clear `#connected_peers`, `#peer_grace_state`, `#peer_session_tokens`, `#pending_initial_sync`, `#peer_transport_listeners`, and (client) remove `#current_transport_listener`.
|
|
55
|
+
- **Confidence**: Confirmed
|
|
56
|
+
|
|
57
|
+
### PSN-6 RESUME_HELLO from an already-connected peer is handled as a fresh connect, re-arming a full INITIAL_SYNC on demand
|
|
58
|
+
- **Severity**: MAJOR
|
|
59
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/NetworkSession.js:1582-1591`
|
|
60
|
+
- **Defect**: When `#peer_grace_state` has no entry, the handler's own comment acknowledges the two cases are conflated — "the peer is fully unknown **OR** they're already connected" — and treats both as a fresh peer: `#pending_initial_sync.set(transport_peer_id, 2)`. There is no check that the peer is currently in `#connected_peers`. RESUME_HELLO is only legitimate in the not-connected state.
|
|
61
|
+
- **Failure scenario**: A connected (authenticated, non-malicious-looking) client sends a RESUME_HELLO packet on every tick. Each one re-arms `#pending_initial_sync`, so `#on_host_tick_complete` (`NetworkSession.js:1358-1372`) emits a **full Snapshotter dump of every replicated entity** to that peer every tick, indefinitely — a fragmented multi-hundred-kilobyte send driven by a ~24-byte inbound packet, sustained. On a populated world this saturates the host's uplink and starves every other peer's action stream.
|
|
62
|
+
- **Fix**: At the top of `#on_resume_hello`, if `this.#connected_peers.has(transport_peer_id)` and there is no grace record, the peer is already live: send `RESUME_ACCEPT` (or drop the packet) and return without touching `#pending_initial_sync`.
|
|
63
|
+
- **Confidence**: Confirmed
|
|
64
|
+
|
|
65
|
+
### PSN-7 NACK_FRAGMENT retransmit is unbounded in count and undeduplicated
|
|
66
|
+
- **Severity**: MINOR
|
|
67
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/orchestrator/NetworkPeer.js:548-563`
|
|
68
|
+
- **Defect**: `missing_count` is a peer-supplied uint8 read straight into the resend loop, and the listed `chunk_index` values are never deduplicated or checked against the message's actual `total_chunks` distribution. `resend_fragment_chunk` bounds each *index* (`fragment_send.js:130`), but nothing bounds the *number* of resends per NACK packet.
|
|
69
|
+
- **Failure scenario**: Peer sends one NACK_FRAGMENT of 4 + 255 = 259 payload bytes naming chunk index 0 two-hundred-fifty-five times for a live retained `message_id`. The sender emits 255 fragment packets of 1191 bytes each = ~304 KB — a ~1170× amplification off one small datagram, repeatable up to `FRAGMENT_RETENTION_MAX_RETRIES` (3) per retained message and across all 16 retained slots.
|
|
70
|
+
- **Fix**: Clamp the loop to the message's real chunk count (`Math.ceil(entry.length / MAX_FRAGMENT_CHUNK_BYTES)`) and skip an index already resent within this NACK (a small `Uint8Array` seen-set, or require strictly-ascending indices and drop the packet otherwise).
|
|
71
|
+
- **Confidence**: Confirmed
|
|
72
|
+
|
|
73
|
+
### PSN-8 `onStateBurst` `length` argument contradicts its documented contract
|
|
74
|
+
- **Severity**: MINOR
|
|
75
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/orchestrator/NetworkPeer.js:513`
|
|
76
|
+
- **Defect**: The signal is documented (`NetworkPeer.js:356-360`) as passing "`length` … the byte count of the burst payload (**not counting the prefix**)", but `dispatch` forwards its own `length`, which is the whole packet including the leading packet-type byte.
|
|
77
|
+
- **Failure scenario**: A library consumer writes the documented loop `const end = buffer.position + length;` (position is 1, just past the prefix) and iterates entities until `buffer.position >= end`. `end` is one byte too large, so after the last entity the loop runs once more and `readUintVar()` consumes a byte of the next packet's stale scratch content — producing a bogus `network_id` and, for a trailing zero byte, an entity write to slot 0.
|
|
78
|
+
- **Fix**: Pass `length - 1`, or change the JSDoc to say the value is the full packet length and that the payload ends at absolute offset `length` (matching what `INITIAL_SYNC` already does).
|
|
79
|
+
- **Confidence**: Confirmed
|
|
80
|
+
|
|
81
|
+
### PSN-24 `NodeUDPTransport.send` hands the caller's reusable buffer straight to async `dgram.send` without copying
|
|
82
|
+
- **Severity**: MAJOR
|
|
83
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/network/transport/adapters/NodeUDPTransport.js:138-139`
|
|
84
|
+
- **Defect**: `Transport.send`'s contract is explicit (`Transport.js:78-84`): *"Caller may reuse `bytes` immediately after the call returns; transport implementations must copy if they need to defer delivery."* `NodeUDPTransport.send` passes `bytes.subarray(0, length)` — a live view of `Channel.#send_buffer` — directly to `this.socket.send(...)`. `dgram.send` tries `uv_udp_try_send` first, but on `UV_EAGAIN` (kernel send buffer full) it queues the request against the *same* memory; the contents must stay valid until the send callback, and Node does not copy them. `WebSocketTransport.send` has the same shape but is safe because `WebSocket.send()` is specified to enqueue a copy.
|
|
85
|
+
- **Failure scenario**: `NetworkPeer.#send_to_peer` fragments a large STATE_BURST or INITIAL_SYNC: `send_fragmented` builds each chunk into the single shared `#fragment_scratch` and calls `channel.send(chunk, len)` in a tight loop; `Channel.send` copies each chunk into its single `#send_buffer` and calls `transport.send(#send_buffer, total)`. A 300 KB message is 255 back-to-back datagrams — enough to fill the default UDP send buffer, so later `uv_udp_try_send` calls return `EAGAIN` and queue. The loop then overwrites `#send_buffer` in place for the next chunk, so the queued datagrams all serialize the *later* chunk's bytes, including its fragment header. The receiver sees repeated `chunk_index` values (deduped as retransmits by `FragmentAssembler.receive:175`), `received_count` never reaches `total_chunks`, the NACK rounds exhaust, and the message is dropped — the initial sync never lands and the peer never joins.
|
|
86
|
+
- **Also affected**: `WebTransportTransport.js:125,131` — `this.#writer.write(payload)` enqueues the same non-copied view into a `WritableStream`; the sink's `write` algorithm runs on a later microtask, by which time `Channel.#send_buffer` has been overwritten. (`WebSocketTransport.js:106` and `WebRTCDataChannelTransport.js:92-96` are safe: both `WebSocket.send` and `RTCDataChannel.send` are specified to copy the `BufferSource` synchronously. `LoopbackTransport` / `SimulatedTransport` copy explicitly.)
|
|
87
|
+
- **Fix**: Copy in the two async adapters before handing the bytes over: `const payload = bytes.slice(0, length);` (a real copy, not `subarray`) in `NodeUDPTransport.send` and `WebTransportTransport.send`.
|
|
88
|
+
- **Confidence**: Likely (the contract violation and the burst pattern are certain; whether a given send actually queues depends on kernel send-buffer / stream-backpressure state)
|
|
89
|
+
|
|
90
|
+
### PSN-9 `BusGraph.setVolume` writes at time 0, so it loses to any in-flight automation
|
|
91
|
+
- **Severity**: MAJOR
|
|
92
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/sopra/runtime/BusGraph.js:195`
|
|
93
|
+
- **Defect**: `bus.output.gain.setValueAtTime(linear, 0)` schedules the new value at context time 0 — always in the past. Any automation event scheduled at or after `currentTime` (the `linearRampToValueAtTime` from `rampVolume`, or the `setTargetAtTime` glide from `approachVolume`) is later on the AudioParam timeline and therefore wins. The logical `bus.nominal` **is** updated, so `getVolume` reports the new value while the audible gain is unchanged.
|
|
94
|
+
- **Failure scenario**: A `DuckingRule` ducks `music` while `dialogue` plays (`SopraEngine.js:392` → `approachVolume` → `setTargetAtTime(target, currentTime, attack)`). Mid-dialogue the player drags the music slider: `setBusVolume('music', 0.9)` → `nominal = 0.9`, but the param stays on the duck glide. When the dialogue ends, `#updateDuckers` (`SopraEngine.js:395`) glides back to `d.nominalDb`, the value captured *at engage* — so the player's new setting is discarded entirely and never becomes audible. Same failure with `applySnapshot(snapshot, {duration: 2})` followed by a `setBusVolume` during the 2 s blend.
|
|
95
|
+
- **Fix**: `const now = this.#ctx.currentTime; bus.output.gain.cancelScheduledValues(now); bus.output.gain.setValueAtTime(linear, now);` (Optionally also have `#updateDuckers` re-read `bus.nominal` each frame while engaged so a nominal change during a duck is honoured on release.)
|
|
96
|
+
- **Confidence**: Confirmed
|
|
97
|
+
|
|
98
|
+
### PSN-10 `SopraEngine.setBuses` orphans the previous bus graph while it is still wired to the destination
|
|
99
|
+
- **Severity**: MAJOR
|
|
100
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/sopra/SopraEngine.js:139-142`
|
|
101
|
+
- **Defect**: `setBuses` replaces `this.busGraph` with a brand-new `BusGraph` but never disconnects the old one. `BusGraph.build` connects each root bus's output to `this.#destination` (`BusGraph.js:99`), so the old tree stays summed into the master destination, and every live `EventInstance` keeps its cached `#chainHead → … → panner → oldBusInput` wiring (captured in `#buildOutputChain`, `EventInstance.js:431/462/482`).
|
|
102
|
+
- **Failure scenario**: A game with background music playing calls `sopra.setBuses(customBuses)` at level load (the documented way to "Replace the mixer with a new bus tree"). The music instance keeps routing through the *old* `music` bus into the *old* `master` bus into the destination — still audible, but now unreachable: `setBusVolume('music', …)`, `applySnapshot`, and every ducking rule address the new graph and have no effect on it. Calling `setBuses` again stacks a third orphaned tree.
|
|
103
|
+
- **Fix**: Before replacing, walk `this.busGraph.buses` and `disconnect()` every `input` and `output` node (and any send gains), and stop/rebuild the live instances (or document `setBuses` as configure-before-play only and throw when `#activeInstances.size > 0`).
|
|
104
|
+
- **Confidence**: Confirmed
|
|
105
|
+
|
|
106
|
+
### PSN-11 `crossfade` performs no fade-in when the incoming event's buffers are not yet decoded
|
|
107
|
+
- **Severity**: MAJOR
|
|
108
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/sopra/SopraEngine.js:217-222`
|
|
109
|
+
- **Defect**: `crossfade` calls `newInstance.setGainDb(nominalDb - 60)` then `newInstance.fadeToGainDb(nominalDb, duration)`. Both are no-ops on the AudioParam when `#instanceGain` is still null — and it *is* null until `#resolve → #buildOutputChain` runs, which on the async load path happens inside a promise callback long after `playEvent` returns (`EventInstance.js:378-388`, `511`, `579`). `fadeToGainDb` still writes `#gainDb = targetDb`, so `#buildOutputChain` later initialises the gain straight to full nominal (`EventInstance.js:436`).
|
|
110
|
+
- **Failure scenario**: `sopra.crossfade(currentMusic, newTrack, { duration: 3 })` where `newTrack`'s buffer has not been decoded yet — i.e. the first time that track is played, the normal case for music. Expected: 3-second fade-in. Actual: the outgoing track fades over 3 s, and the incoming track **pops in at full volume** the instant its buffer resolves.
|
|
111
|
+
- **Fix**: Have `fadeToGainDb` (and `setGainDb`) record a pending ramp when `#instanceGain` is null, and replay it in `#buildOutputChain` — e.g. store `{fromDb, toDb, duration, startAfter}` and, after creating `#instanceGain`, anchor at `fromDb` and issue the `rampGain` against the remaining time.
|
|
112
|
+
- **Confidence**: Confirmed
|
|
113
|
+
|
|
114
|
+
### PSN-25 Audio clips of different concrete types compare and hash equal, merging distinct events into one voice-limit bucket
|
|
115
|
+
- **Severity**: MAJOR
|
|
116
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/sopra/definition/clip/SwitchContainerAudioClip.js:77` (`equals`) and `:83` (`hash`); base `AbstractAudioClip.js:44` does no type check either
|
|
117
|
+
- **Defect**: `AbstractAudioClip.equals` compares only `gain`/`pitch`, `ContainerAudioClip.equals` adds children, and no level in the chain checks the concrete class. `SwitchContainerAudioClip.hash()` is a byte-identical expression to `BlendContainerAudioClip.hash()` (`combine_hash(super.hash(), computeStringHash(parameter), computeHashFloat(defaultValue))` then folding children — Blend's `hash` omits `blends`). So a Switch and a Blend with the same children/parameter hash equal *and* compare equal, despite Switch playing exactly one child and Blend playing all of them.
|
|
118
|
+
- **Failure scenario**: `sw = SwitchContainerAudioClip.from(kids, {parameter:'intensity', defaultValue:0})` and `bl = BlendContainerAudioClip.from(kids, {parameter:'intensity', defaultValue:0, blends:[…]})` give `sw.hash() === bl.hash()` and `sw.equals(bl) === true`. Lift to events: `EventDescription.from('weather', sw, {maxInstances:1})` and `EventDescription.from('weather', bl, {maxInstances:1})` also hash and compare equal (`EventDescription.equals` delegates straight to `rootClip.equals`). `VoiceManager.register`'s `#byEvent.getOrCompute` then files instances of the *blend* event into the *switch* event's bucket, so `makeRoom` sees `count 1 >= max 1` and steals/stops the switch event's live voice whenever the blend event is triggered — two genuinely different events share one instance-limit bucket.
|
|
119
|
+
- **Fix**: Gate `AbstractAudioClip.equals` on concrete type — `if (Object.getPrototypeOf(this).constructor !== Object.getPrototypeOf(other).constructor) return false;` at the top (every subclass already chains through `super.equals`) — and fold a per-class discriminator (e.g. `computeStringHash(this.constructor.typeName)`) into `AbstractAudioClip.hash()`.
|
|
120
|
+
- **Confidence**: Confirmed
|
|
121
|
+
|
|
122
|
+
### PSN-26 `BlendContainerAudioClip.equals` throws when compared against a non-Blend clip
|
|
123
|
+
- **Severity**: MAJOR
|
|
124
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/sopra/definition/clip/BlendContainerAudioClip.js:113`
|
|
125
|
+
- **Defect**: The mirror direction of PSN-25 throws instead of returning false: `this.blends.length !== other.blends.length` dereferences `other.blends`, which is `undefined` on a `SwitchContainerAudioClip`. The three preceding short-circuit clauses (`super.equals`, `parameter`, `defaultValue`) all pass for a Switch with matching content, so execution reaches line 113. `SilenceAudioClip` / `SequenceContainerAudioClip` escape only by accident — they have no `parameter`, so clause 2 short-circuits first.
|
|
126
|
+
- **Failure scenario**: With `sw`/`bl` from PSN-25, `bl.equals(sw)` throws `TypeError: Cannot read properties of undefined (reading 'length')`. In the engine this is reached whenever the Blend-rooted `EventDescription` is the one already stored in `VoiceManager.#byEvent` and the Switch-rooted one is the probe: `HashMap.get` finds the hash-matching entry (hashes are identical per PSN-25) and calls `keyEqualityFunction(record.key /* blend */, key /* switch */)`. The `TypeError` propagates out of `VoiceManager.register`/`makeRoom` and aborts the `playEvent` call — the sound never plays and the caller's frame unwinds.
|
|
127
|
+
- **Fix**: The same concrete-type guard in `AbstractAudioClip.equals` (PSN-25) makes line 113 unreachable for a non-Blend `other`.
|
|
128
|
+
- **Confidence**: Confirmed
|
|
129
|
+
|
|
130
|
+
### PSN-27 `BlendContainerAudioClip` does not reset its parallel `blends` array in `clearChildren`
|
|
131
|
+
- **Severity**: MINOR
|
|
132
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/sopra/definition/clip/BlendContainerAudioClip.js:37` (missing `clearChildren` override)
|
|
133
|
+
- **Defect**: `blends` is a parallel array indexed by child index (`#blendGain` reads `blends[i]`), but `BlendContainerAudioClip` inherits `ContainerAudioClip.clearChildren()` (`ContainerAudioClip.js:42-44`), which resets only `children`. `RandomContainerAudioClip` overrides `clearChildren()` for exactly this reason (`RandomContainerAudioClip.js:53-57`, dropping `weights`); Blend does not.
|
|
134
|
+
- **Failure scenario**: `const b = BlendContainerAudioClip.from([calm, storm], {parameter:'intensity', blends:[fadeOutCurve, fadeInCurve]}); b.clearChildren(); b.addChild(newLayer);` leaves `children = [newLayer]` with `blends = [fadeOutCurve, fadeInCurve]`. `planTimeline` at `intensity = 1` now evaluates `fadeOutCurve` (value 0) for `newLayer`, so `blend <= 0` and the layer is skipped entirely — the container plans zero plays and returns `duration: 0`, where the documented behaviour for a child with no blend curve is "always fully on" (gain 1). `toJSON` and the binary adapter then persist two curves for one child, so the mispairing survives a save/load round-trip.
|
|
135
|
+
- **Fix**: Add `clearChildren() { super.clearChildren(); this.blends = []; }`, matching `RandomContainerAudioClip.clearChildren()`. (The binary adapter is unaffected today because it assigns `value.blends` before calling `value.clearChildren()`; reorder it to assign after, once the override exists.)
|
|
136
|
+
- **Confidence**: Confirmed
|
|
137
|
+
|
|
138
|
+
### PSN-28 `fadeOutAllTracks` deletes the emitter's authored tracks; `stopAllTracks` does not
|
|
139
|
+
- **Severity**: MAJOR
|
|
140
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/ecs/emitter/SoundEmitterComponentContext.js:207-211` (`fadeOutAll`)
|
|
141
|
+
- **Defect**: `fadeOutAll` calls `instance.fadeOutAndStop(duration)` without detaching the track↔instance bindings first. `stopAll` (lines 220-234) deliberately unbinds *before* stopping, with a comment saying exactly why: "`#onInstanceEnded` must bail out (it keys off `#instances`) so teardown doesn't fire `track.on.ended` or mutate the emitter's authored track list." The two paths differ only by a fade, yet have opposite effects on authored data.
|
|
142
|
+
- **Failure scenario**: A music entity with one *looping* `SoundTrack`. The game calls `emitter.fadeOutAllTracks(2)` to duck out. Two seconds later `SopraEngine.update` crosses the instance's `#stopDeadline` → `EventInstance.stop()` → `onEnded` → `#onInstanceEnded(track, instance)` still finds `#instances.get(track) === instance`, so it fires `track.on.ended` and **removes the track from `emitter.tracks`**. `emitter.tracks.length` goes 1 → 0: the emitter can never play that music again, and serializing the entity now writes zero tracks. (`SoundEmitterSystem.spec.js:378` drives this exact path with a looping emitter but never asserts `tracks.length`, so it passes.)
|
|
143
|
+
- **Fix**: In `fadeOutAll`, snapshot the entries and `#unbind(track)` (clear `track.__instance` / `track.__soundRuntime` and delete from `#instances`) for each **before** calling `instance.fadeOutAndStop(duration)` — mirroring `stopAll`.
|
|
144
|
+
- **Confidence**: Confirmed
|
|
145
|
+
|
|
146
|
+
### PSN-29 `SoundTrack.time` is serialized but discarded on load — a saved track always restarts from 0
|
|
147
|
+
- **Severity**: MAJOR
|
|
148
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/ecs/emitter/SoundEmitterComponentContext.js:87-92` (`addTrack`)
|
|
149
|
+
- **Defect**: `addTrack` calls `sopra.playEvent(description, { busId, position, oneShot })` with no `startTime` and never seeks, so the track's persisted playback cursor is silently dropped. `SoundTrack.#time` is written by `fromJSON` (`SoundTrack.js:338`) and by `SoundEmitterSerializationAdapter.js:73`, and emitted by `toJSON` (`SoundTrack.js:309`) and `SoundEmitterSerializationAdapter.js:35` — but as soon as `#bind` sets `track.__instance`, the `time` getter (`SoundTrack.js:78-80`) shadows `#time` with `instance.playhead`, so the loaded value is never read again.
|
|
150
|
+
- **Failure scenario**: Save while a 3-minute looping music emitter is at `track.time === 95.2`. On load `track.time = 95.2` (instance still null, so `#time = 95.2`); then `SoundEmitterSystem.link` → `addTrack` → `EventInstance.start` sets `startedAt = now` (because `#startTime === null`) → playhead 0. The music restarts from the beginning and `track.time` immediately reports ~0 — the field round-trips through the file for no effect.
|
|
151
|
+
- **Fix**: Read `track.time` *before* `#bind` and pass it through: `playEvent(description, { …, startTime: this.sopra.currentTime - time })`. The mechanism already exists and is used by `LiveEmitterSet.#promote` (`LiveEmitterSet.js:293`). (`instance.seek(time)` after binding also works but re-spawns the voices.)
|
|
152
|
+
- **Confidence**: Confirmed
|
|
153
|
+
|
|
154
|
+
### PSN-30 `AudioEmitter.fromJSON` defaults `sourceRadius` to 0.5 while the field initialiser is 0.05
|
|
155
|
+
- **Severity**: MINOR
|
|
156
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/ecs/audio/AudioEmitter.js:105` vs `:51`
|
|
157
|
+
- **Defect**: A 10× default mismatch between the deserialization path and the class field, so a deserialized emitter is not equivalent to a constructed one.
|
|
158
|
+
- **Failure scenario**: `AudioEmitter.fromJSON({ event: {...}, acoustic: true })` — any content JSON authored before, or simply without, the optional `sourceRadius` key — yields `sourceRadius === 0.5`, while `new AudioEmitter()` yields `0.05`. `AudioEmitterSystem.js:139` forwards it verbatim to `LiveEmitterSet.add` → `EventInstance.sourceRadius` → `OcclusionSolver.solve`, which offsets its probe rays by `sourceRadius`. The JSON-loaded source is treated as a 0.5 m sphere and stays partially audible behind cover exactly where the constructed one is fully occluded.
|
|
159
|
+
- **Fix**: Change line 105's fallback to `0.05` to match the field (or change the field to `0.5`) — the two must agree.
|
|
160
|
+
- **Confidence**: Confirmed
|
|
161
|
+
|
|
162
|
+
### PSN-31 `SoundEmitter.fromJSON` defaults `attenuation` to `Linear` while the field initialiser is `Smith`
|
|
163
|
+
- **Severity**: MINOR
|
|
164
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/ecs/emitter/SoundEmitter.js:344` vs `:64`
|
|
165
|
+
- **Defect**: When `json.attenuation` is absent, `fromJSON`'s `else` branch assigns `SoundAttenuationFunction.Linear` (0); the field initialiser is `SoundAttenuationFunction.Smith` (2). A JSON-built emitter gets a different falloff law than a constructed one.
|
|
166
|
+
- **Failure scenario**: `engine/EntityCreator.js:50` (`createSoundEmitter`) and `engine/achievements/AchievementManager.js:329` both call `SoundEmitter.fromJSON({...})` with no `attenuation` key and `isPositioned: true`; `isAttenuated` is also absent so line 332 sets the `Attenuation` flag. `soundEmitterToEventDescription.js:79` therefore builds the distance curve with `interpolate_irradiance_linear` instead of `interpolate_irradiance_smith` — every one-shot SFX entity created through those two engine helpers plays with a different distance→gain curve than the class default.
|
|
167
|
+
- **Fix**: Make the `else` branch at line 344 assign `SoundAttenuationFunction.Smith` to match the field initialiser (or change the field to `Linear`).
|
|
168
|
+
- **Confidence**: Confirmed
|
|
169
|
+
|
|
170
|
+
### PSN-12 `SilentSoundMaterial` serializes but cannot be deserialized
|
|
171
|
+
- **Severity**: MAJOR
|
|
172
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/material/concrete/json/deserializeSoundMaterialFromJSON.js:14-26`
|
|
173
|
+
- **Defect**: The type switch handles `RandomSoundMaterial`, `SingleSoundMaterial` and `SoundMaterialComposition`, but not `SilentSoundMaterial` — which has a `typeName`, a `toJSON`, a `fromJSON`, and a shipped `INSTANCE` singleton, and is therefore produced by `serializeSoundMaterialToJSON`. The default branch throws.
|
|
174
|
+
- **Failure scenario**: A terrain layer with no audible surface is authored/saved with `SilentSoundMaterial.INSTANCE` (the exact value `TerrainSoundMaterialSurfaceDetector.initialize` assigns for a layer with no material, `TerrainSoundMaterialSurfaceDetector.js:73`). Round-trip gives `{ type: "SilentSoundMaterial", data: {} }`. On load, `TerrainSoundMaterialSurfaceDetector.initialize` line 75 calls `deserializeSoundMaterialFromJSON` and gets `Error: Unsupported material type 'SilentSoundMaterial'`, aborting terrain sound initialisation for the whole level. Same failure for a `SoundMaterialComposition` containing a silent slot (`SoundMaterialComposition.js:49`).
|
|
175
|
+
- **Fix**: Add `case SilentSoundMaterial.typeName: instance = new SilentSoundMaterial(); break;` to the switch.
|
|
176
|
+
- **Confidence**: Confirmed
|
|
177
|
+
|
|
178
|
+
### PSN-13 Nested `SoundMaterialComposition` corrupts its own output via a shared module-level scratch array
|
|
179
|
+
- **Severity**: MAJOR
|
|
180
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/material/concrete/SoundMaterialComposition.js:10,85,101`
|
|
181
|
+
- **Defect**: `computeInteractionSounds` gathers each child's output into the module-level `const temp = []` and writes its own results into the caller's `destination`. When a child is itself a `SoundMaterialComposition` — supported by `setMaterial` and by the JSON format (`deserializeSoundMaterialFromJSON` can produce one) — the recursive call receives `temp` as its `destination`, so the inner composition reads *and writes* the same array while iterating.
|
|
182
|
+
- **Failure scenario**: Composition `A = [B, S3]` where `B = [S1, S2]`. `A` calls `B.computeInteractionSounds(temp, 0, …)`. Inside `B`: `S1` writes its spec to `temp[0]`; `B` clones/weights it back into `temp[0]`, offset → 1; then `S2` writes its **raw, unweighted** spec to `temp[0]`, clobbering `B`'s finished result; `B` then clones that into `temp[1]` and returns 2. `A` copies `temp[0..1]` out — so the sound that should have been S1-at-weight-w1 is emitted as S2 at full unweighted volume, and S1 disappears. The `__volume_threshold` cut is also applied against the wrong source.
|
|
183
|
+
- **Fix**: Drop the module-level singleton. Either allocate a per-call array in `computeInteractionSounds`, or keep a depth-indexed pool of scratch arrays (`#scratch[depth]`) so a nested call never aliases its parent's buffer.
|
|
184
|
+
- **Confidence**: Confirmed
|
|
185
|
+
|
|
186
|
+
### PSN-14 `SoundControllerSystem` stop handler dereferences a missing `SoundEmitter` with no guard at all
|
|
187
|
+
- **Severity**: MINOR
|
|
188
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/ecs/SoundControllerSystem.js:86-89`
|
|
189
|
+
- **Defect**: Distinct from the already-reported line 82. `stopEventHandler` does `const emitter = dataset.getComponent(entity, SoundEmitter); emitter.tracks.removeOneIf(…)` with no undefined check and no log — the start handler at least logs first.
|
|
190
|
+
- **Failure scenario**: An entity carries `SoundController` and `SoundEmitter`. Game code removes the `SoundEmitter` component (e.g. muting a unit) while leaving `SoundController` attached, then the rule's `stopEvent` fires on that entity. `getComponent` returns `undefined` and the listener throws `TypeError: Cannot read properties of undefined (reading 'tracks')` out of the ECS event dispatch, aborting the remaining listeners for that event.
|
|
191
|
+
- **Fix**: `if (emitter === undefined) { return; }` before the `removeOneIf`.
|
|
192
|
+
- **Confidence**: Confirmed
|
|
193
|
+
|
|
194
|
+
### PSN-15 `RandomSoundMaterial` with an empty `sounds` list reports one written spec but writes `undefined`
|
|
195
|
+
- **Severity**: MINOR
|
|
196
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/material/concrete/RandomSoundMaterial.js:16-22`
|
|
197
|
+
- **Defect**: `randomFromArray(Math.random, [])` returns `undefined` (it indexes `array[randomIntegerBetween(random, 0, -1)]`), but the method unconditionally writes it into `destination[destination_offset]` and returns `1`, violating its own contract that the return value is the number of valid specs written.
|
|
198
|
+
- **Failure scenario**: A `RandomSoundMaterial` authored (or `fromJSON`'d) with `sounds: []` sits in a terrain layer. `SoundMaterialComposition.computeInteractionSounds` receives `additions = 1`, takes `const source = temp[0]` (undefined) and evaluates `source.volume * weight` → `TypeError: Cannot read properties of undefined (reading 'volume')`, killing the footstep-sound path for the whole surface.
|
|
199
|
+
- **Fix**: `if (this.sounds.length === 0) { return 0; }` at the top, so the "no sound" case is reported honestly rather than as a written-but-undefined entry.
|
|
200
|
+
- **Confidence**: Confirmed
|
|
201
|
+
|
|
202
|
+
### PSN-16 `SoundMaterialComposition.fromJSON` default `volumeThreshold` diverges from the field initialiser
|
|
203
|
+
- **Severity**: MINOR
|
|
204
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/sound/material/concrete/SoundMaterialComposition.js:32,46`
|
|
205
|
+
- **Defect**: The constructor sets `this.__volume_threshold = 0.01`; `fromJSON` destructures `volumeThreshold = 0`. A payload written before the field existed (or any hand-authored JSON that omits it) deserializes to a threshold of `0`, not the class default.
|
|
206
|
+
- **Failure scenario**: `new SoundMaterialComposition().fromJSON({ materials: [m], weights: [0.001] })` yields `__volume_threshold = 0`, so a contribution with an effective volume of 0.001 — which the freshly-constructed object would have cut — is emitted. `toJSON`/`fromJSON` is therefore not the identity on the default-constructed object either: construct → `fromJSON(toJSON())` on an object whose threshold was left at the default gives 0.01 (correct), but any *older* saved file silently drops to 0.
|
|
207
|
+
- **Fix**: `volumeThreshold = 0.01` in the `fromJSON` destructuring, matching the constructor.
|
|
208
|
+
- **Confidence**: Confirmed
|
|
209
|
+
|
|
210
|
+
### PSN-17 `ebvh_build_for_geometry_incremental` writes the BATCH index as leaf user data, so `batch_size > 1` loses all but one triangle per leaf
|
|
211
|
+
- **Severity**: MAJOR
|
|
212
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/core/bvh2/bvh3/ebvh_build_for_geometry_incremental.js:35`
|
|
213
|
+
- **Defect**: The leaf AABB is computed over `group_size` triangles starting at `index_start = i * batch_size` (lines 26-31), but the payload stored is `bvh.node_set_user_data(node_index, i)` — the *batch ordinal*, not `index_start`, and no group size is stored. Every triangle query in the package reads `COLUMN_USER_DATA` as a single triangle index and tests exactly one triangle per leaf (`ebvh_geometry_query_nearest_triangle_ray.js:119`, `ebvh_geometry_query_any_triangle_ray.js:121`). `batch_size = 1` masks the bug because then `i === index_start`.
|
|
214
|
+
- **Failure scenario**: 8 triangles, `ebvh_build_for_geometry_incremental(bvh, idx, pos, 4)` → 2 leaves with user data `0` and `1`. Leaf 1's AABB covers triangles 4-7, but the ray test intersects **triangle 1** against it. A ray that hits only triangle 5 returns `false` from `ebvh_geometry_query_nearest_triangle_ray`; a ray that misses all geometry but passes through leaf 1's box while grazing triangle 1 reports a spurious hit. Triangles 2-7 are never tested at all.
|
|
215
|
+
- **Fix**: Store `index_start` (not `i`) as the user data and store the group size so the leaf test can loop `[index_start, index_start + group_size)`; or remove the `batch_size` parameter and always emit one leaf per triangle, matching what every in-package consumer assumes.
|
|
216
|
+
- **Confidence**: Confirmed
|
|
217
|
+
|
|
218
|
+
### PSN-18 `aabb3_detailed_volume_intersection_callback_based` JSDoc parameter order does not match the signature
|
|
219
|
+
- **Severity**: MINOR
|
|
220
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/core/bvh2/traversal/aabb3_detailed_volume_intersection_callback_based.js:23-25`
|
|
221
|
+
- **Defect**: The JSDoc declares the parameters after `z1` as `planes, plane_count, plane_mask`; the actual signature (lines 31-33) is `plane_mask, planes, plane_count`. The body forwards correctly, so only the published contract of this exported function is wrong. (The same swap is tracked for the callee in `core/geom/GEOMETRY_REVIEW_002_NAMING.md:595`; this wrapper was missed.)
|
|
222
|
+
- **Failure scenario**: A consumer following the doc calls `aabb3_detailed_volume_intersection_callback_based(x0,y0,z0,x1,y1,z1, planes, 6, 0b111111, cb)`. `plane_mask` receives the `planes` array, so `plane_mask & (1 << i)` coerces to `0` and every clipping plane is skipped; `plane_count` receives the mask and `planes` receives `6`, so `planes[0]` is `undefined`. The callback receives the 8 raw box corners instead of the clipped volume — the "much tighter bounds" the function exists to produce silently degrade to the untrimmed AABB.
|
|
223
|
+
- **Fix**: Reorder the three `@param` lines to `plane_mask, planes, plane_count`.
|
|
224
|
+
- **Confidence**: Confirmed
|
|
225
|
+
|
|
226
|
+
### PSN-22 `NodeProxy.tryAbsorbChild` runs one extra iteration at `j = -1`, absorbing `undefined` and emitting an out-of-contract leaf offset
|
|
227
|
+
- **Severity**: CRITICAL
|
|
228
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/core/bvh8/build/NodeProxy.js:208` (loop header) and `:231-233` (the second decrement)
|
|
229
|
+
- **Defect**: The absorb loop decrements `j` twice when `retry_middle` is set (line 228 and line 232) but the bound `j < cluster_size` is only re-checked *after* the `j++`. On the final absorbed triangle the pair reaches `(j = -2, cluster_size = 0)`, `j++` makes it `(-1, 0)`, and `-1 < 0` is still true — so the body runs once more on `triangles[-1] === undefined`.
|
|
230
|
+
- **Failure scenario**: Verified by running the shipped builders, not hypothesised. Cluster `[14, 13, 15]` in a child with the parent rejecting `14` first and accepting `15`, `13`, `14` after: `j=0 size=3 tri=14 → false` (skip middle, `retry_middle = true`), `j=2 size=3 tri=15 → true`, `j=1 size=2 tri=13 → true`, `j=0 size=1 tri=14 → true`, then **`j=-1 size=0 tri=undefined → true`**. `aabb3_from_triangle_by_index(bounds, 0, undefined, …)` produces all-NaN bounds and `tryAddPrimitive(undefined, …)` *succeeds*: the span guard `(NaN - NaN) > 23` is false and `TriangleCluster.canAccept`'s `Math.abs(existing - undefined) > 1` is false. `undefined` lands in a parent cluster and the parent's `primitive_index_low/high` become `NaN`; `cluster_size` goes to `-1`, so the now-empty child cluster fails the `cluster_size === 0` test at line 237 and is never spliced out. Downstream, `bvh8_populate_node_from_proxy` stores `node_set_base_index_triangle(node, NaN)` as `0` and, because `triangle - NaN` is `NaN`, `min_triangle_index` never updates off its sentinel `24` — so leaf slots are emitted as meta `0xF8` (offset 24, count 3). Reproduced end-to-end with ordinary geometry (50 unit right triangles at integer centres on a 3×3 grid, `seededRandom(1738)`): `metas(0) = [56, 57, 58, 248, 248, 0, 0, 0]` and `bvh8_validate_structure` reports *"node 0 slot 3: leaf triangle offset 24 > 23 collides with the internal slot encoding"*. Offset 24 aliases the internal-slot encoding, so the node points at triangles 24/25/26 instead of the real ones and the real triangles are dropped. **4 of 2000 fuzzed `bvh8_build_for_geometry` builds fail this way** (integer grids, 1e6-scale soups, and mixed-scale soups all hit it). A `NaN` `primitive_index_low` also permanently disables the ≤23-offset span guard for that node, since `NaN > 23` is always false.
|
|
231
|
+
- **Fix**: Clamp `j` after the decrements — insert `if (j < -1) { j = -1; }` immediately after the `if (retry_middle) { j--; }` block (line 233). Verified: with that one line the same 2000-build fuzz drops from 4 failures to 0, and the empty cluster is then correctly spliced out by the `cluster_size === 0` branch.
|
|
232
|
+
- **Confidence**: Confirmed
|
|
233
|
+
|
|
234
|
+
### PSN-23 `byte()` wraps instead of clamping, so a quantized upper bound of 256 becomes 0
|
|
235
|
+
- **Severity**: MINOR
|
|
236
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/core/bvh8/build/byte.js:7-9`
|
|
237
|
+
- **Defect**: `byte()` does `(float_value >>> 0) & 0xFF` — a wrap, not a saturating clamp. `Math.ceil((child_max - p) / e)` in the quantizer can exceed 255 by one when double rounding in `encode_bounds_e` picks an exponent one step too small; 256 wraps to 0. The same wrap turns a negative floor result into 255 on the min side.
|
|
238
|
+
- **Failure scenario**: Node AABB with `p_x = -2**-53` and `x1 = 255/1024` (both exactly float32-representable): `e = 2^-10`, `(x1 - p_x) * (1/e) = 255.0000000000001`, `Math.ceil(...) = 256`, `byte(256) = 0`. Any child whose `x1` equals the node's `x1` then gets `quantized_max_x = 0` with `quantized_min_x = 0`, so `bvh8_get_node_child_bounds` decodes that child's x-range as the degenerate slab `[p_x, p_x]`. Every triangle in that child with `x > p_x` is now outside its stored child box: ray traversal culling against the quantized child AABB misses them, and `bvh8_geometry_validate` throws "violates child bounds". Both quantizer call sites are affected (`build/bvh8_from_proxy.js:211-216`, `build/BVH8Converter.js:501-506`). Reachability is low — it needs the node extent within ~1e-16 relative of `255 * 2^k`, which is why 3M random float32 pairs and 3250 fuzzed builds did not hit it — but the input above is a real float32 pair, not an impossible state.
|
|
239
|
+
- **Fix**: Make `byte()` saturate: `return float_value <= 0 ? 0 : (float_value >= 255 ? 255 : (float_value >>> 0));`. Both importers (`bvh8_from_proxy.js`, `BVH8Converter.js`) want a saturating conversion, and clamping is the conservative direction for both the floor (min) and ceil (max) sides.
|
|
240
|
+
- **Confidence**: Confirmed
|
|
241
|
+
|
|
242
|
+
### PSN-19 `ColliderObserverSystem.unlink` re-derives the owning body from live state, leaking the BVH leaf when the derivation has changed
|
|
243
|
+
- **Severity**: MAJOR
|
|
244
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/physics/ecs/ColliderObserverSystem.js:77-80`
|
|
245
|
+
- **Defect**: `unlink` calls `__resolve_body_entity(ecd, entity)` — re-walking `RigidBody`-on-self → `ParentEntity` → orphan — instead of using the binding captured at attach time. `PhysicsSystem.attach_collider` records `collider._bodyId = rb._bodyId` (`PhysicsSystem.js:752`) and nothing ever reads it back. If the resolution has changed or now fails, `detach_collider` is never called, so the collider's BVH leaf and its entry in `__body_collider_lists` survive the component removal.
|
|
246
|
+
- **Failure scenario**: Entity 1 = `RigidBody` + `Transform`; entity 2 = `Collider` + `Transform` + `ParentEntity(→1)`. The collider is attached: body 1 owns one list entry and BVH node `N` is live in `dynamicBvh`. Now detach the child from its parent the normal way — `ecd.removeComponentFromEntity(2, ParentEntity)` — then `ecd.removeComponentFromEntity(2, Collider)`. `unlink` runs, `__resolve_body_entity` finds neither a `RigidBody` on 2 nor a `ParentEntity`, returns `-1`, and bails at line 78. Node `N` stays in `dynamicBvh` forever: `generate_pairs` keeps producing pairs against a collider that no longer exists on any entity, and body 1 keeps colliding with a phantom. The same ordering occurs on plain entity destruction — `removeEntity` removes components in component-type-index order (`EntityComponentDataset.js:967-974`), i.e. registration order, so whether `ParentEntity` is stripped before `Collider` is incidental to how the app registered its component types, not something physics controls. A third variant: retarget `parent.entity` to a body of a different `BodyKind` before removing the collider — `detach_collider(newEntity, c)` then calls `__remove_from_broadphase` with the *new* body's kind (`PhysicsSystem.js:783`), removing node index `N` from `staticBvh` when `N` is a `dynamicBvh` node, corrupting the static tree *and* leaking the original leaf.
|
|
247
|
+
- **Fix**: Resolve from the attach-time handle: in `unlink`, `if (collider._bodyId === -1) return;` then detach via that id — e.g. add `PhysicsSystem#detach_collider_by_id(collider)` that indexes `__body_collider_lists[body_id_index(collider._bodyId)]` directly, so the teardown path never depends on live dataset topology.
|
|
248
|
+
- **Confidence**: Confirmed
|
|
249
|
+
|
|
250
|
+
### PSN-20 `raycast` caches the shared traversal-stack pointer while invoking a user filter, and accumulates into module-level state
|
|
251
|
+
- **Severity**: MAJOR
|
|
252
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/physics/queries/raycast.js:83,28-30,119`
|
|
253
|
+
- **Defect**: `bvh_raycast_nearest` copies `stack.pointer` into a local (`let pointer = stack.pointer`) and never advances the global pointer during the walk (line 166 restores it to a value it never left). `SCRATCH_UINT32_TRAVERSAL_STACK`'s contract is explicit: *"Consumers that cache `pointer` into a local must not be re-entered."* But the walk invokes the caller-supplied `filter` at line 119, and `raycast`'s nearest-hit state (`acc`, `best_normal`, `cand_normal`) is module-scoped.
|
|
254
|
+
- **Failure scenario**: Pass a line-of-sight filter — `(entity, collider) => system.raycast(losRay, tmpHit) === false` — or any filter that runs another BVH query (`overlap_shape`, `bvh_query_user_data_intersects_sphere`, …). The nested traversal starts its frame at `stack.pointer`, which is still the outer walk's `stack_top`, so it overwrites `stack[stack_top…]` — exactly the outer walk's pending node ids. When the outer loop resumes it pops the nested walk's leftovers as node indices, computes `node * ELEMENT_WORD_COUNT` into `bvh.__data_float32`, and tests unrelated AABBs: the ray reports a hit on a body it never crosses, or misses the true nearest surface. If the filter calls `raycast` itself, `raycast` line 200 resets `acc.best_t = max_distance` of the *inner* ray and the outer call returns the inner ray's hit and normal outright.
|
|
255
|
+
- **Fix**: Keep the pointer live during the walk, the way `core/bvh2/bvh3/query/bvh_query_leaves_ray.js:38,51,79-80` does — `const stack_top = stack.pointer++; stack[stack_top] = root;` then push/pop through `stack.pointer` so a nested traversal pushes above the live frame and drains back. Additionally make `acc` / `best_normal` / `cand_normal` locals of `raycast` (or pass an explicit accumulator into `bvh_raycast_nearest`) so a re-entrant filter cannot corrupt the outer nearest-hit state.
|
|
256
|
+
- **Confidence**: Confirmed
|
|
257
|
+
|
|
258
|
+
### PSN-21 `Joint` has no `toJSON`/`fromJSON`, so no blueprint or entity template can contain one
|
|
259
|
+
- **Severity**: MINOR
|
|
260
|
+
- **File**: `H:/git/moh/app/src/mir-engine/meep/src/engine/physics/ecs/Joint.js` (class body — no `toJSON`/`fromJSON` anywhere)
|
|
261
|
+
- **Defect**: Every sibling physics component implements the pair (`Collider.js:117/126`, `RigidBody.js:210/228`, `FluidObstacle.js:76/82`); `Joint` does not. The engine's generic template path calls both unconditionally.
|
|
262
|
+
- **Failure scenario**: `EntityBlueprint.add()` (`EntityBlueprint.js:92`) does `this.addJSON(constructor, component.toJSON())`, so `EntityBlueprint.from([new RigidBody(), new Transform(), new Joint()])` throws `TypeError: component.toJSON is not a function`. Even a blueprint assembled via `addJSON` fails at `build()` (`EntityBlueprint.js:154`), which calls `component.fromJSON(json)` on a freshly-constructed `Joint`. A ragdoll or vehicle authored as a template therefore cannot be built at all.
|
|
263
|
+
- **Fix**: Add `toJSON`/`fromJSON` covering exactly the field set `equals`/`hash` and `JointSerializationAdapter` already agree on: `entityA`, `entityB`, `localAnchorA`, `localAnchorB`, `localBasisA`, `localBasisB`, `swingTwist`, and the six-entry `dofMode` / `dofLowerLimit` / `dofUpperLimit` / `dofStiffness` / `dofDamping` / `dofMotorTargetVelocity` / `dofMotorMaxForce` arrays (excluding `dofImpulse` and the `_*` runtime handles, matching the binary adapter).
|
|
264
|
+
- **Confidence**: Confirmed
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## legacy sound-ECS areas traced and found correct (not findings)
|
|
269
|
+
|
|
270
|
+
link/unlink signal symmetry in `SoundEmitterComponentContext` and `SpatialAudioIndex` (identical
|
|
271
|
+
bound-arrow identities on both sides); the `#live` / `#emitters` / `#demoteScratch`
|
|
272
|
+
iteration-vs-mutation discipline and `Math.min(budget, ranked.length)` in `LiveEmitterSet.refresh`;
|
|
273
|
+
`compareByEffective` is a numeric total order; `SpatialAudioIndex` compares linear distance against
|
|
274
|
+
a linear `distanceMax` on both the BVH cube and the narrowphase `distanceTo` (no squared/linear
|
|
275
|
+
mixing), and `BVHQueryIntersectsSphere.from` retains the array by reference so the reused
|
|
276
|
+
`#querySphere` mutation takes effect; every dB conversion (`volume2dB` → `setGainDb` → `dB2Volume`)
|
|
277
|
+
and every duration (`fadeOutSeconds`, `playingSince`, `sopra.update(context.currentTime)`) is on the
|
|
278
|
+
correct side of the unit boundary. Nothing reportable in `SoundTrackFlags`, `SoundEmitterFlags`,
|
|
279
|
+
`SoundPanningModelType`, `loadSoundTrackAsset`, `SoundController`, `SoundListener`, or
|
|
280
|
+
`SoundEmitterSystem`.
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
## sopra definition/serialization areas traced and found correct (not findings)
|
|
285
|
+
|
|
286
|
+
Adapter write-order vs read-order (all 14 match); field completeness across
|
|
287
|
+
`toJSON`/`fromJSON`/binary/field-initialiser/`clone`/`equals`/`hash` for every definition class;
|
|
288
|
+
default-value agreement between the three paths; registry coverage — all 6 concrete clips and all 3
|
|
289
|
+
concrete effects are registered in **both** directions in `sopraJSON.js` and
|
|
290
|
+
`populateSopraSerializationRegistry.js`; effect `build()` wiring (`input`/`output` ends correct, no
|
|
291
|
+
orphaned nodes); dB-vs-linear and seconds-vs-ms units throughout; timeline accumulation in
|
|
292
|
+
Sequence/Switch/Blend/Random; `weightedRandomFromArray`'s weight callback.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## physics areas traced and found correct (not findings)
|
|
297
|
+
|
|
298
|
+
`RigidBody`/`Collider`/`Joint` `equals`/`hash` field coverage (complete against every
|
|
299
|
+
non-`_`-prefixed field, with documented exclusions); all three binary adapters' write/read order and
|
|
300
|
+
defaults vs. the field initialisers, including the `>>> 0` / `| 0` signedness round-trip on
|
|
301
|
+
`layer`/`mask`/`flags` and `mask = 0xFFFFFFFF|0`; `RigidBodySerializationUpgrader_0_1`'s
|
|
302
|
+
1×u8 + 13×f64 + 3×u32 v0 layout against v1's `deserialize`; `solver_caches` write/read symmetry,
|
|
303
|
+
sort comparators and sleep-chain rotation; `SolverBodyState` capacity/stamp/generation arithmetic
|
|
304
|
+
and the grow-before-generation-roll ordering; `solve_constraints` scratch aliasing,
|
|
305
|
+
`accumulate_point_block`/`invert_sym3` index arithmetic, `swing_twist_error` algebra and every row's
|
|
306
|
+
sign convention; `generate_pairs` grow-and-retry plus entity-canonical A/B dedupe;
|
|
307
|
+
`mesh_mesh_tet_manifold` buffer sizing and the `4 + k*7` contact layout.
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## bvh2 areas traced and found correct (not findings — recorded so they are not re-walked)
|
|
312
|
+
|
|
313
|
+
Implicit `(node << 1) + 1` / `last_valid_index = binary_node_count + leaf_node_count` arithmetic in
|
|
314
|
+
both `bvh32_*` queries for N = 0, 1, 2, 3, 4, 5, 6, 8 leaves including the `copy_box_zero_size`
|
|
315
|
+
filler nodes; `BinaryUint32BVH.build()`'s level-start computation at N = 0 and N = 1; all four
|
|
316
|
+
`balance_rotate` re-wirings (child/grandchild pointers, parent back-links, re-formed-node AABB and
|
|
317
|
+
height) and the fact that stale ancestor AABBs are never *read* during `bubble_up_update`;
|
|
318
|
+
`insert_leaf`'s `uint32` re-bind after a reallocating `allocate_node()`; `remove_leaf` for the
|
|
319
|
+
root-leaf / root-parent / interior cases; the in-place compaction in `ebvh_build_hierarchy` (the
|
|
320
|
+
write cursor always trails the read cursor); the `n - 1` parent-node pool budget in both callers;
|
|
321
|
+
`ebvh_nodes_sort_sah_local4` bounds; and the `result_offset` contract in every query in the package
|
|
322
|
+
— no query ignores it or double-counts.
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
## `ServerAuthoritativeServer.authorize` status
|
|
327
|
+
|
|
328
|
+
**CLOSED — no longer permissive.** `ServerAuthoritativeServer`'s constructor now unconditionally
|
|
329
|
+
installs a real policy: `this.executor.authorize = make_owner_authorization({ world, identity_class,
|
|
330
|
+
server_peer_id })` (`ServerAuthoritativeServer.js:130-134`), with `identity_class = NetworkIdentity`
|
|
331
|
+
and `server_peer_id = -1` as constructor defaults. `SimActionExecutor.authorize` still defaults to
|
|
332
|
+
`null` (`SimActionExecutor.js:155`), but that is the *low-level* primitive and is documented as
|
|
333
|
+
deliberately permissive for single-peer/local-only use; the server orchestrator — the thing an
|
|
334
|
+
untrusted peer talks to — is secure by default. The replay path is also safe: server-local actions
|
|
335
|
+
are logged with `SENDER_LOCAL` (0xFF) and `execute` bypasses the gate for that sentinel
|
|
336
|
+
(`SimActionExecutor.js:218`), so rollback replay does not reject the server's own actions.
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Unspecced file inventory
|
|
341
|
+
|
|
342
|
+
Files with no adjacent `<name>.spec.js` (excluding `*.spec.js` and `prototype*.js`).
|
|
343
|
+
|
|
344
|
+
### `engine/physics` — 28 files
|
|
345
|
+
```
|
|
346
|
+
body/SolverBodyState.js
|
|
347
|
+
broadphase/generate_pairs.js
|
|
348
|
+
constraint/DofMode.js
|
|
349
|
+
constraint/solve_constraints.js
|
|
350
|
+
contact/combine_material.js
|
|
351
|
+
ecs/BodyKind.js
|
|
352
|
+
ecs/ColliderFlags.js
|
|
353
|
+
ecs/PhysicsEvents.js
|
|
354
|
+
ecs/RigidBodyFlags.js
|
|
355
|
+
ecs/RigidBodySerializationUpgrader_0_1.js
|
|
356
|
+
ecs/SleepState.js
|
|
357
|
+
ecs/is_sensor.js
|
|
358
|
+
fluid/SliceVisualiser.js
|
|
359
|
+
fluid/ecs/FluidObstacle.js
|
|
360
|
+
fluid/effector/AbstractFluidEffector.js
|
|
361
|
+
fluid/solver/v3_grid_compute_solid_neighbour_mask.js
|
|
362
|
+
fluid/solver/v3_mac_advect_maccormack_velocity.js
|
|
363
|
+
fluid/solver/v3_mac_advect_scalar.js
|
|
364
|
+
fluid/solver/v3_mac_apply_vorticity_confinement.js
|
|
365
|
+
fluid/solver/v3_mac_compute_divergence.js
|
|
366
|
+
fluid/solver/v3_mac_subtract_pressure_gradient.js
|
|
367
|
+
mls-mpm/MLS_MPM.js
|
|
368
|
+
mls-mpm/testMLS_MPM.js
|
|
369
|
+
narrowphase/decomposition/decompose_to_triangles.js
|
|
370
|
+
narrowphase/decomposition/triangle_buffer_layout.js
|
|
371
|
+
narrowphase/mesh_mesh_tet_manifold.js
|
|
372
|
+
persistence/solver_caches.js
|
|
373
|
+
queries/raycast.js
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### `engine/sound` — 74 files
|
|
377
|
+
```
|
|
378
|
+
SoundEngine.js
|
|
379
|
+
asset/SoundAssetPlaybackSpec.js
|
|
380
|
+
asset/SoundAssetPlaybackSpecFlags.js
|
|
381
|
+
dB2Volume.js
|
|
382
|
+
volume2dB.js
|
|
383
|
+
ecs/SoundController.js
|
|
384
|
+
ecs/SoundControllerSystem.js
|
|
385
|
+
ecs/SoundListener.js
|
|
386
|
+
ecs/SoundListenerSystem.js
|
|
387
|
+
ecs/emitter/SoundAttenuationFunction.js
|
|
388
|
+
ecs/emitter/SoundEmitter.js
|
|
389
|
+
ecs/emitter/SoundEmitterComponentContext.js
|
|
390
|
+
ecs/emitter/SoundEmitterFlags.js
|
|
391
|
+
ecs/emitter/SoundEmitterSerializationUpgrader_0_1.js
|
|
392
|
+
ecs/emitter/SoundEmitterSerializationUpgrader_1_2.js
|
|
393
|
+
ecs/emitter/SoundPanningModelType.js
|
|
394
|
+
ecs/emitter/SoundTrack.js
|
|
395
|
+
ecs/emitter/SoundTrackFlags.js
|
|
396
|
+
ecs/emitter/loadSoundTrackAsset.js
|
|
397
|
+
material/AbstractSoundMaterialDefinition.js
|
|
398
|
+
material/SoundMaterialInteractionType.js
|
|
399
|
+
material/concrete/RandomSoundMaterial.js
|
|
400
|
+
material/concrete/SilentSoundMaterial.js
|
|
401
|
+
material/concrete/SingleSoundMaterial.js
|
|
402
|
+
material/concrete/SoundMaterialComposition.js
|
|
403
|
+
material/concrete/json/deserializeSoundMaterialFromJSON.js
|
|
404
|
+
material/detector/SoundMaterialSurfaceDetector.js
|
|
405
|
+
material/detector/terrain/TerrainSoundMaterialSurfaceDetector.js
|
|
406
|
+
simulation/core/AcousticMediumSerializationAdapter.js
|
|
407
|
+
simulation/core/AcousticSolution.js
|
|
408
|
+
simulation/core/AcousticVolumeRegion.js
|
|
409
|
+
simulation/core/OccluderBody.js
|
|
410
|
+
simulation/core/RayHit.js
|
|
411
|
+
simulation/definition/AcousticDirectivitySerializationAdapter.js
|
|
412
|
+
simulation/definition/AcousticMaterialSerializationAdapter.js
|
|
413
|
+
simulation/ecs/AcousticBody.js
|
|
414
|
+
simulation/ecs/AcousticBodySerializationAdapter.js
|
|
415
|
+
simulation/ecs/AcousticVolume.js
|
|
416
|
+
simulation/ecs/AcousticVolumeSerializationAdapter.js
|
|
417
|
+
simulation/probe/AcousticProbeFieldSerializationAdapter.js
|
|
418
|
+
simulation/probe/ProbeFieldPathingSolution.js
|
|
419
|
+
simulation/probe/bakeProbeField.js
|
|
420
|
+
simulation/probe/bakeVisibility.js
|
|
421
|
+
simulation/probe/probe_sdf_grid.js
|
|
422
|
+
simulation/render/reverbImpulseResponse.js
|
|
423
|
+
simulation/serialization/populateAcousticSerializationRegistry.js
|
|
424
|
+
sopra/asset/AssetManagerBufferProvider.js
|
|
425
|
+
sopra/asset/BufferProvider.js
|
|
426
|
+
sopra/asset/StubBufferProvider.js
|
|
427
|
+
sopra/definition/BusDefinition.js
|
|
428
|
+
sopra/definition/DuckingRule.js
|
|
429
|
+
sopra/definition/MixerSnapshot.js
|
|
430
|
+
sopra/definition/ParameterDefinition.js
|
|
431
|
+
sopra/definition/SopraPanningModel.js
|
|
432
|
+
sopra/definition/VoiceStealMode.js
|
|
433
|
+
sopra/definition/clip/AbstractAudioClip.js
|
|
434
|
+
sopra/definition/clip/BlendContainerAudioClip.js
|
|
435
|
+
sopra/definition/clip/ContainerAudioClip.js
|
|
436
|
+
sopra/definition/clip/SampleAudioClip.js
|
|
437
|
+
sopra/definition/clip/SequenceContainerAudioClip.js
|
|
438
|
+
sopra/definition/clip/SilenceAudioClip.js
|
|
439
|
+
sopra/definition/clip/SwitchContainerAudioClip.js
|
|
440
|
+
sopra/definition/effect/AbstractAudioEffect.js
|
|
441
|
+
sopra/definition/effect/CompressorEffect.js
|
|
442
|
+
sopra/definition/effect/EqEffect.js
|
|
443
|
+
sopra/definition/effect/ReverbEffect.js
|
|
444
|
+
sopra/runtime/EventInstance.js
|
|
445
|
+
sopra/runtime/VoiceManager.js
|
|
446
|
+
sopra/runtime/VoicePool.js
|
|
447
|
+
sopra/serialization/populateSopraSerializationRegistry.js
|
|
448
|
+
sopra/serialization/sopraJSON.js
|
|
449
|
+
sopra/serialization/sopraSerializationHarness.js
|
|
450
|
+
sopra/util/MockAudioContext.js
|
|
451
|
+
sopra/util/buildAttenuationCurve.js
|
|
452
|
+
```
|
|
453
|
+
(`engine/sound/simulation/**` was excluded from review per the known-good list; listed here only
|
|
454
|
+
for inventory completeness.)
|
|
455
|
+
|
|
456
|
+
### `engine/network` — 15 files
|
|
457
|
+
```
|
|
458
|
+
convertPathToURL.js
|
|
459
|
+
xhr.js
|
|
460
|
+
core/MalformedPacketError.js
|
|
461
|
+
ecs/components/NetworkIdentity.js
|
|
462
|
+
orchestrator/NetworkPeer.js
|
|
463
|
+
orchestrator/ServerAuthoritativeClient.js
|
|
464
|
+
orchestrator/ServerAuthoritativeServer.js
|
|
465
|
+
replication/ScopeFilter.js
|
|
466
|
+
sim/ActionLog.js
|
|
467
|
+
sim/ReplicatedComponentRegistry.js
|
|
468
|
+
sim/SimAction.js
|
|
469
|
+
sim/SimActionExecutor.js
|
|
470
|
+
sim/SimActionRegistry.js
|
|
471
|
+
transport/Transport.js
|
|
472
|
+
transport/fragments/packet_size.js
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### `core/bvh2` — files with no adjacent spec
|
|
476
|
+
```
|
|
477
|
+
binary/2/bvh32_query_user_data_overlaps_clipping_volume.js
|
|
478
|
+
bvh3/build_triangle_morton_codes.js
|
|
479
|
+
bvh3/bvh_build_from_unindexed_triangles.js
|
|
480
|
+
bvh3/ebvh_build_for_geometry_incremental.js
|
|
481
|
+
bvh3/ebvh_build_hierarchy.js
|
|
482
|
+
bvh3/ebvh_print_to_console.js
|
|
483
|
+
bvh3/query/BVHQueryAnd.js
|
|
484
|
+
bvh3/query/BVHQueryAny.js
|
|
485
|
+
bvh3/query/BVHQueryIntersectsAABB.js
|
|
486
|
+
bvh3/query/BVHQueryIntersectsFrustum.js
|
|
487
|
+
bvh3/query/BVHQueryIntersectsRay.js
|
|
488
|
+
bvh3/query/BVHQueryIntersectsSphere.js
|
|
489
|
+
bvh3/query/bvh_query_user_data_ray.js
|
|
490
|
+
traversal/aabb3_detailed_volume_intersection_callback_based.js
|
|
491
|
+
visual/BVHGeometry.js
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
### `core/bvh8` — files with no adjacent spec
|
|
495
|
+
```
|
|
496
|
+
bvh8_geometry_validate_indirect.js
|
|
497
|
+
bvh8_node_child_surface_area.js
|
|
498
|
+
bvh8_node_count_triangles.js
|
|
499
|
+
bvh8_quality.js
|
|
500
|
+
build/aabb3_compute_merge_cost.js
|
|
501
|
+
build/aabb3_from_triangle_by_index.js
|
|
502
|
+
build/bvh8_from_proxy.js
|
|
503
|
+
build/byte.js
|
|
504
|
+
build/encode_bounds_e.js
|
|
505
|
+
```
|
|
506
|
+
(`build/NodeProxy.js`, `build/TriangleCluster.js`, `build/BVH8Converter.js` and the other `build/`
|
|
507
|
+
modules that do carry adjacent specs were still read, since the builder is the source of PSN-22.)
|