@woosh/meep-engine 2.113.2 → 2.113.4

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.
Files changed (71) hide show
  1. package/build/bundle-worker-terrain.js +1 -1
  2. package/build/meep.cjs +63 -43
  3. package/build/meep.min.js +1 -1
  4. package/build/meep.module.js +63 -43
  5. package/package.json +1 -1
  6. package/src/core/collection/array/combine_hash.d.ts +7 -0
  7. package/src/core/collection/array/combine_hash.d.ts.map +1 -0
  8. package/src/core/collection/array/combine_hash.js +13 -0
  9. package/src/core/collection/array/computeHashIntegerArray.d.ts.map +1 -1
  10. package/src/core/collection/array/computeHashIntegerArray.js +4 -7
  11. package/src/core/collection/array/typed/is_typed_array_equals.d.ts.map +1 -1
  12. package/src/core/collection/array/typed/is_typed_array_equals.js +32 -15
  13. package/src/core/collection/array/typed/sparse_typed_array_hash.d.ts +10 -0
  14. package/src/core/collection/array/typed/sparse_typed_array_hash.d.ts.map +1 -0
  15. package/src/core/collection/array/typed/sparse_typed_array_hash.js +26 -0
  16. package/src/core/function/FunctionCompiler.js +3 -3
  17. package/src/core/geom/3d/compute_triangle_normal.d.ts +5 -5
  18. package/src/core/geom/3d/compute_triangle_normal.d.ts.map +1 -1
  19. package/src/core/geom/3d/compute_triangle_normal.js +4 -4
  20. package/src/core/geom/ConicRay.js +2 -2
  21. package/src/core/geom/Vector4.js +2 -2
  22. package/src/core/math/random/roundFair.js +1 -1
  23. package/src/core/model/node-graph/node/NodeInstancePortReference.js +2 -2
  24. package/src/core/model/reactive/model/ReactiveBinaryExpression.d.ts.map +1 -1
  25. package/src/core/model/reactive/model/ReactiveBinaryExpression.js +2 -2
  26. package/src/core/model/reactive/model/terminal/ReactiveReference.d.ts.map +1 -1
  27. package/src/core/model/reactive/model/terminal/ReactiveReference.js +2 -2
  28. package/src/engine/asset/AssetDescription.js +2 -2
  29. package/src/engine/asset/AssetManager.d.ts.map +1 -1
  30. package/src/engine/asset/AssetManager.js +2 -0
  31. package/src/engine/asset/loaders/material/computeMaterialHash.js +6 -6
  32. package/src/engine/asset/loaders/material/computeTextureHash.js +2 -2
  33. package/src/engine/ecs/animation/Animation.js +2 -2
  34. package/src/engine/ecs/animation/AnimationClip.d.ts.map +1 -1
  35. package/src/engine/ecs/animation/AnimationClip.js +4 -4
  36. package/src/engine/ecs/gui/GUIElement.js +2 -2
  37. package/src/engine/ecs/gui/hud/HeadsUpDisplay.js +2 -2
  38. package/src/engine/ecs/gui/position/ViewportPosition.js +2 -2
  39. package/src/engine/ecs/ik/IKConstraint.d.ts.map +1 -1
  40. package/src/engine/ecs/ik/IKConstraint.js +3 -3
  41. package/src/engine/graphics/ecs/animation/animator/AnimationClip.d.ts.map +1 -1
  42. package/src/engine/graphics/ecs/animation/animator/AnimationClip.js +4 -4
  43. package/src/engine/graphics/ecs/animation/animator/AnimationClipDefinition.js +4 -4
  44. package/src/engine/graphics/ecs/animation/animator/AnimationNotification.js +2 -2
  45. package/src/engine/graphics/ecs/animation/animator/AnimationNotificationDefinition.js +3 -3
  46. package/src/engine/graphics/ecs/animation/animator/graph/AnimationGraph.js +2 -2
  47. package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationGraphDefinition.d.ts.map +1 -1
  48. package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationGraphDefinition.js +8 -8
  49. package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationStateDefinition.js +2 -2
  50. package/src/engine/graphics/ecs/animation/animator/graph/definition/AnimationTransitionDefinition.js +3 -3
  51. package/src/engine/graphics/geometry/buffered/computeBufferAttributeHash.d.ts.map +1 -1
  52. package/src/engine/graphics/geometry/buffered/computeBufferAttributeHash.js +2 -13
  53. package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +2 -2
  54. package/src/engine/graphics/particles/particular/engine/emitter/ParticleLayer.js +2 -2
  55. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts.map +1 -1
  56. package/src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js +8 -3
  57. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.d.ts.map +1 -1
  58. package/src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js +3 -3
  59. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.d.ts.map +1 -1
  60. package/src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js +4 -4
  61. package/src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameter.d.ts.map +1 -1
  62. package/src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameter.js +4 -4
  63. package/src/engine/graphics/render/frame_graph/resource/TextureResourceDescriptor.js +2 -2
  64. package/src/engine/grid/obstacle/GridObstacle.js +2 -2
  65. package/src/engine/intelligence/behavior/selector/WeightedElement.js +2 -2
  66. package/src/engine/sound/ecs/emitter/SoundEmitter.js +2 -2
  67. package/src/engine/sound/ecs/emitter/SoundTrack.d.ts.map +1 -1
  68. package/src/engine/sound/ecs/emitter/SoundTrack.js +6 -6
  69. package/src/misc/makeMaterialIconCached.js +2 -2
  70. package/src/view/common/HTMLElementCacheKey.d.ts.map +1 -1
  71. package/src/view/common/HTMLElementCacheKey.js +5 -5
@@ -1,4 +1,4 @@
1
- import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../core/collection/array/combine_hash.js";
2
2
  import { murmur3_32 } from "../../../../core/math/hash/murmur3_32.js";
3
3
  import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
4
4
  import { computeStringHash } from "../../../../core/primitives/strings/computeStringHash.js";
@@ -123,7 +123,7 @@ export function computeTextureHash(t) {
123
123
 
124
124
  const specificHash = computeSpecificHash(t);
125
125
 
126
- return computeHashIntegerArray(
126
+ return combine_hash(
127
127
  t.mapping,
128
128
  t.wrapS,
129
129
  t.wrapT,
@@ -1,4 +1,4 @@
1
- import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../core/collection/array/combine_hash.js";
2
2
  import List from '../../../core/collection/list/List.js';
3
3
  import { computeHashFloat } from "../../../core/primitives/numbers/computeHashFloat.js";
4
4
  import { AnimationClip } from "./AnimationClip.js";
@@ -115,7 +115,7 @@ export class Animation {
115
115
  * @returns {number}
116
116
  */
117
117
  hash() {
118
- return computeHashIntegerArray(
118
+ return combine_hash(
119
119
  this.clips.hash(),
120
120
  computeHashFloat(this.debtTime)
121
121
  );
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationClip.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/animation/AnimationClip.js"],"names":[],"mappings":"AAKA;IAEQ,qBAAkC;IAClC,6BAAyC;IAEzC;;;OAGG;IACH,QAFU,OAAO,CAEW;IAE5B;;;OAGG;IACH,WAFU,OAAO,CAEc;IAE/B;;;OAGG;IACH,OAFU,MAAM,CAEF;IAGlB;;;;OAIG;IACH,cAHW,aAAa,GACX,OAAO,CAQnB;IAED;;;OAGG;IACH,QAFa,MAAM,CAUlB;IAED;;;;OAIG;IACH,WAHW,MAAM,oBAAkB,GACtB,OAAO,CAInB;IAED,0BA4BC;IAED;;;;;;MAQC;IAED;;;OAGG;IACH,2CAQC;IAED;;;OAGG;IACH,6CAOC;CACJ;2BAnI0B,uCAAuC;4BACtC,wCAAwC;oBAChD,+BAA+B"}
1
+ {"version":3,"file":"AnimationClip.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/animation/AnimationClip.js"],"names":[],"mappings":"AAKA;IAEQ,qBAAkC;IAClC,6BAAyC;IAEzC;;;OAGG;IACH,QAFU,OAAO,CAEW;IAE5B;;;OAGG;IACH,WAFU,OAAO,CAEc;IAE/B;;;OAGG;IACH,OAFU,MAAM,CAEF;IAGlB;;;;OAIG;IACH,cAHW,aAAa,GACX,OAAO,CAQnB;IAED;;;OAGG;IACH,QAFa,MAAM,CAUlB;IAED;;;;OAIG;IACH,WAHW,MAAM,oBAAkB,GACtB,OAAO,CAInB;IAED,0BA4BC;IAED;;;;;;MAQC;IAED;;;OAGG;IACH,2CAQC;IAED;;;OAGG;IACH,6CAOC;CACJ;2BAhI0B,uCAAuC;4BADtC,wCAAwC;oBADhD,+BAA+B"}
@@ -1,7 +1,7 @@
1
- import ObservedString from "../../../core/model/ObservedString.js";
2
- import ObservedInteger from "../../../core/model/ObservedInteger.js";
1
+ import { combine_hash } from "../../../core/collection/array/combine_hash.js";
3
2
  import Vector1 from "../../../core/geom/Vector1.js";
4
- import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
3
+ import ObservedInteger from "../../../core/model/ObservedInteger.js";
4
+ import ObservedString from "../../../core/model/ObservedString.js";
5
5
 
6
6
  export class AnimationClip {
7
7
  constructor() {
@@ -45,7 +45,7 @@ export class AnimationClip {
45
45
  * @returns {number}
46
46
  */
47
47
  hash() {
48
- return computeHashIntegerArray(
48
+ return combine_hash(
49
49
  this.name.hash(),
50
50
  this.repeatCount.hash(),
51
51
  this.weight.hash(),
@@ -1,5 +1,5 @@
1
1
  import { assert } from "../../../core/assert.js";
2
- import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
2
+ import { combine_hash } from "../../../core/collection/array/combine_hash.js";
3
3
  import Vector2 from '../../../core/geom/Vector2.js';
4
4
  import { objectDeepEquals } from "../../../core/model/object/objectDeepEquals.js";
5
5
  import ObservedBoolean from "../../../core/model/ObservedBoolean.js";
@@ -148,7 +148,7 @@ class GUIElement {
148
148
  * @return {number}
149
149
  */
150
150
  hash() {
151
- return computeHashIntegerArray(
151
+ return combine_hash(
152
152
  this.flags,
153
153
  computeStringHash(this.klass),
154
154
  this.anchor.hash(),
@@ -1,4 +1,4 @@
1
- import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../core/collection/array/combine_hash.js";
2
2
  import Vector3 from '../../../../core/geom/Vector3.js';
3
3
  import { HeadsUpDisplayFlag } from "./HeadsUpDisplayFlag.js";
4
4
 
@@ -73,7 +73,7 @@ class HeadsUpDisplay {
73
73
  * @return {number}
74
74
  */
75
75
  hash() {
76
- return computeHashIntegerArray(
76
+ return combine_hash(
77
77
  this.flags,
78
78
  this.worldOffset.hash()
79
79
  );
@@ -1,4 +1,4 @@
1
- import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../core/collection/array/combine_hash.js";
2
2
  import Vector2 from "../../../../core/geom/Vector2.js";
3
3
  import ObservedBoolean from "../../../../core/model/ObservedBoolean.js";
4
4
  import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
@@ -86,7 +86,7 @@ class ViewportPosition {
86
86
  }
87
87
 
88
88
  hash() {
89
- return computeHashIntegerArray(
89
+ return combine_hash(
90
90
  this.position.hash(),
91
91
  this.offset.hash(),
92
92
  this.anchor.hash(),
@@ -1 +1 @@
1
- {"version":3,"file":"IKConstraint.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/ik/IKConstraint.js"],"names":[],"mappings":"AAKA;IAEI;;;OAGG;IACH,iBAAc;IAEd;;;;OAIG;IACH,QAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,UAFU,eAAe,CAEY;IAErC;;;OAGG;IACH,UAFU,MAAM,CAEH;IAEb;;;OAGG;IACH,OAFU,MAAM,CAEA;IAEhB;;;OAGG;IACH,QAFU,MAAM,CAEA;IAGhB;;;OAGG;IACH,YAFW,YAAY,QAStB;IAED,sBAMC;IAED;;;;OAIG;IACH,cAHW,YAAY,GACV,OAAO,CASnB;IAED;;;OAGG;IACH,QAFY,MAAM,CAWjB;CACJ;gCA9F+B,gDAAgD"}
1
+ {"version":3,"file":"IKConstraint.d.ts","sourceRoot":"","sources":["../../../../../src/engine/ecs/ik/IKConstraint.js"],"names":[],"mappings":"AAKA;IAEI;;;OAGG;IACH,iBAAc;IAEd;;;;OAIG;IACH,QAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,UAFU,eAAe,CAEY;IAErC;;;OAGG;IACH,UAFU,MAAM,CAEH;IAEb;;;OAGG;IACH,OAFU,MAAM,CAEA;IAEhB;;;OAGG;IACH,QAFU,MAAM,CAEA;IAGhB;;;OAGG;IACH,YAFW,YAAY,QAStB;IAED,sBAMC;IAED;;;;OAIG;IACH,cAHW,YAAY,GACV,OAAO,CASnB;IAED;;;OAGG;IACH,QAFY,MAAM,CAWjB;CACJ;gCA7F+B,gDAAgD"}
@@ -1,7 +1,7 @@
1
+ import { combine_hash } from "../../../core/collection/array/combine_hash.js";
1
2
  import { NumericInterval } from "../../../core/math/interval/NumericInterval.js";
2
- import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
3
- import { computeStringHash } from "../../../core/primitives/strings/computeStringHash.js";
4
3
  import { computeHashFloat } from "../../../core/primitives/numbers/computeHashFloat.js";
4
+ import { computeStringHash } from "../../../core/primitives/strings/computeStringHash.js";
5
5
 
6
6
  export class IKConstraint {
7
7
 
@@ -83,7 +83,7 @@ export class IKConstraint {
83
83
  * @return {number}
84
84
  */
85
85
  hash() {
86
- return computeHashIntegerArray(
86
+ return combine_hash(
87
87
  computeStringHash(this.effector),
88
88
  computeHashFloat(this.offset),
89
89
  this.distance.hash(),
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationClip.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/ecs/animation/animator/AnimationClip.js"],"names":[],"mappings":"AAOA;IAEQ;;;OAGG;IACH,6BAAe;IAEf;;;OAGG;IACH,QAFU,MAAM,CAED;IAEf;;;OAGG;IACH,WAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,OAFU,MAAM,GAAC,iBAAiB,CAEpB;IAGlB;;;;;;OAMG;IACH,8BALW,MAAM,sCAEN,MAAM,SACN,MAAM,QA+FhB;IAED;;;OAGG;IACH,8DAeC;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,iBAAiB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,iBAAiB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,iBAAiB,SACxB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,iBAAiB,GACtB,OAAO,CAInB;IAGD;;;;OAIG;IACH,cAHW,aAAa,GACX,OAAO,CAYnB;IAED;;OAEG;IACH,QAFa,MAAM,CASlB;CACJ;kCAjOiC,wBAAwB"}
1
+ {"version":3,"file":"AnimationClip.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/ecs/animation/animator/AnimationClip.js"],"names":[],"mappings":"AAOA;IAEQ;;;OAGG;IACH,6BAAe;IAEf;;;OAGG;IACH,QAFU,MAAM,CAED;IAEf;;;OAGG;IACH,WAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,OAFU,MAAM,GAAC,iBAAiB,CAEpB;IAGlB;;;;;;OAMG;IACH,8BALW,MAAM,sCAEN,MAAM,SACN,MAAM,QA+FhB;IAED;;;OAGG;IACH,8DAeC;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,iBAAiB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,iBAAiB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,iBAAiB,SACxB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,iBAAiB,GACtB,OAAO,CAInB;IAGD;;;;OAIG;IACH,cAHW,aAAa,GACX,OAAO,CAYnB;IAED;;OAEG;IACH,QAFa,MAAM,CASlB;CACJ;kCA9NiC,wBAAwB"}
@@ -1,9 +1,9 @@
1
+ import { LoopOnce, LoopRepeat } from "three";
2
+ import { combine_hash } from "../../../../../core/collection/array/combine_hash.js";
1
3
  import { min2 } from "../../../../../core/math/min2.js";
4
+ import { computeHashFloat } from "../../../../../core/primitives/numbers/computeHashFloat.js";
2
5
  import { AnimationClipFlag } from "./AnimationClipFlag.js";
3
- import { LoopOnce, LoopRepeat } from "three";
4
6
  import { AnimationEventTypes } from "./AnimationEventTypes.js";
5
- import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
6
- import { computeHashFloat } from "../../../../../core/primitives/numbers/computeHashFloat.js";
7
7
 
8
8
  export class AnimationClip {
9
9
  constructor() {
@@ -217,7 +217,7 @@ export class AnimationClip {
217
217
  * @returns {number}
218
218
  */
219
219
  hash() {
220
- return computeHashIntegerArray(
220
+ return combine_hash(
221
221
  this.flags,
222
222
  computeHashFloat(this.weight),
223
223
  computeHashFloat(this.timeScale),
@@ -1,8 +1,8 @@
1
- import { computeStringHash } from "../../../../../core/primitives/strings/computeStringHash.js";
2
- import { invokeObjectHash } from "../../../../../core/model/object/invokeObjectHash.js";
1
+ import { combine_hash } from "../../../../../core/collection/array/combine_hash.js";
3
2
  import { computeHashArray } from "../../../../../core/collection/array/computeHashArray.js";
4
- import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
5
3
  import { isArrayEqual } from "../../../../../core/collection/array/isArrayEqual.js";
4
+ import { invokeObjectHash } from "../../../../../core/model/object/invokeObjectHash.js";
5
+ import { computeStringHash } from "../../../../../core/primitives/strings/computeStringHash.js";
6
6
 
7
7
  /**
8
8
  *
@@ -108,7 +108,7 @@ export class AnimationClipDefinition {
108
108
  * @returns {number}
109
109
  */
110
110
  hash() {
111
- return computeHashIntegerArray(
111
+ return combine_hash(
112
112
  computeStringHash(this.name),
113
113
  computeHashArray(this.notifications, invokeObjectHash),
114
114
  computeHashArray(this.tags, computeStringHash)
@@ -1,4 +1,4 @@
1
- import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../../core/collection/array/combine_hash.js";
2
2
  import { computeHashFloat } from "../../../../../core/primitives/numbers/computeHashFloat.js";
3
3
 
4
4
  export class AnimationNotification {
@@ -35,7 +35,7 @@ export class AnimationNotification {
35
35
  * @returns {number}
36
36
  */
37
37
  hash() {
38
- return computeHashIntegerArray(
38
+ return combine_hash(
39
39
  computeHashFloat(this.time),
40
40
  this.def.hash()
41
41
  );
@@ -1,7 +1,7 @@
1
+ import { combine_hash } from "../../../../../core/collection/array/combine_hash.js";
2
+ import { computeObjectHash } from "../../../../../core/math/hash/computeObjectHash.js";
1
3
  import { objectDeepEquals } from "../../../../../core/model/object/objectDeepEquals.js";
2
4
  import { computeStringHash } from "../../../../../core/primitives/strings/computeStringHash.js";
3
- import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
4
- import { computeObjectHash } from "../../../../../core/math/hash/computeObjectHash.js";
5
5
 
6
6
  export class AnimationNotificationDefinition {
7
7
  constructor() {
@@ -36,7 +36,7 @@ export class AnimationNotificationDefinition {
36
36
  * @returns {number}
37
37
  */
38
38
  hash() {
39
- return computeHashIntegerArray(
39
+ return combine_hash(
40
40
  computeStringHash(this.event),
41
41
  computeObjectHash(this.data)
42
42
  );
@@ -1,6 +1,6 @@
1
1
  import { AnimationMixer } from "three";
2
2
  import { assert } from "../../../../../../core/assert.js";
3
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
3
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
4
4
  import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
5
5
  import { threeUpdateTransform } from "../../../../util/threeUpdateTransform.js";
6
6
  import { AnimationGraphFlag } from "./AnimationGraphFlag.js";
@@ -125,7 +125,7 @@ export class AnimationGraph {
125
125
  * @returns {number}
126
126
  */
127
127
  hash() {
128
- return computeHashIntegerArray(
128
+ return combine_hash(
129
129
  this.flags,
130
130
  computeHashFloat(this.debtTime),
131
131
  this.state.hash(),
@@ -1 +1 @@
1
- {"version":3,"file":"AnimationGraphDefinition.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/engine/graphics/ecs/animation/animator/graph/definition/AnimationGraphDefinition.js"],"names":[],"mappings":"AAUA;IAEI;;;OAGG;IACH,QAFU,wBAAwB,EAAE,CAExB;IAEZ;;;OAGG;IACH,aAFU,+BAA+B,CAExB;IAEjB;;;OAGG;IACH,cAFU,wBAAwB,CAEd;IAEpB;;;OAGG;IACH,WAFU,uBAAuB,EAAE,CAEpB;IAEf;;;;OAIG;IACH,cAHW,wBAAwB,GACtB,OAAO,CAWnB;IAED;;OAEG;IACH,QAFa,MAAM,CAQlB;IAED;;;;OAIG;IACH,6BAHW,MAAM,EAAE,GACN,wBAAwB,GAAC,SAAS,CAiC9C;IAED;;;OAGG;IACH,oBAFY,gBAAgB,CAI3B;IAED;;;;OAIG;IACH,kBAHW,uBAAuB,GACrB,MAAM,CAIlB;IAED,cAcC;IAED;;;;OAIG;IACH,8BAHoB,aAAa,+BAahC;IAED;;;OAGG;IACH,gBAFW,wBAAwB,WAYlC;IAED;;;;OAIG;IACH,qBAHW,wBAAwB,GACvB,OAAO,CAIlB;IAED;;;;OAIG;IACH,mBAHW,wBAAwB,GACtB,OAAO,CAYnB;CACJ;yCA9LwC,+BAA+B;wCAChC,kCAAkC;iCAFzC,oCAAoC;8BAGvC,wBAAwB"}
1
+ {"version":3,"file":"AnimationGraphDefinition.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/engine/graphics/ecs/animation/animator/graph/definition/AnimationGraphDefinition.js"],"names":[],"mappings":"AAUA;IAEI;;;OAGG;IACH,QAFU,wBAAwB,EAAE,CAExB;IAEZ;;;OAGG;IACH,aAFU,+BAA+B,CAExB;IAEjB;;;OAGG;IACH,cAFU,wBAAwB,CAEd;IAEpB;;;OAGG;IACH,WAFU,uBAAuB,EAAE,CAEpB;IAEf;;;;OAIG;IACH,cAHW,wBAAwB,GACtB,OAAO,CAWnB;IAED;;OAEG;IACH,QAFa,MAAM,CAQlB;IAED;;;;OAIG;IACH,6BAHW,MAAM,EAAE,GACN,wBAAwB,GAAC,SAAS,CAiC9C;IAED;;;OAGG;IACH,oBAFY,gBAAgB,CAI3B;IAED;;;;OAIG;IACH,kBAHW,uBAAuB,GACrB,MAAM,CAIlB;IAED,cAcC;IAED;;;;OAIG;IACH,8BAHoB,aAAa,+BAahC;IAED;;;OAGG;IACH,gBAFW,wBAAwB,WAYlC;IAED;;;;OAIG;IACH,qBAHW,wBAAwB,GACvB,OAAO,CAIlB;IAED;;;;OAIG;IACH,mBAHW,wBAAwB,GACtB,OAAO,CAYnB;CACJ;yCAxLwC,+BAA+B;wCAHhC,kCAAkC;iCACzC,oCAAoC;8BAFvC,wBAAwB"}
@@ -1,12 +1,12 @@
1
- import { AnimationStateType } from "../AnimationStateType.js";
2
- import { BlendStateMatrix } from "../../blending/BlendStateMatrix.js";
3
- import { AnimationStateDefinition } from "./AnimationStateDefinition.js";
4
- import { AnimationClipDefinition } from "../../AnimationClipDefinition.js";
5
- import { AnimationClip } from "../../AnimationClip.js";
6
- import { invokeObjectHash } from "../../../../../../../core/model/object/invokeObjectHash.js";
1
+ import { combine_hash } from "../../../../../../../core/collection/array/combine_hash.js";
7
2
  import { computeHashArray } from "../../../../../../../core/collection/array/computeHashArray.js";
8
- import { computeHashIntegerArray } from "../../../../../../../core/collection/array/computeHashIntegerArray.js";
9
3
  import { isArrayEqual } from "../../../../../../../core/collection/array/isArrayEqual.js";
4
+ import { invokeObjectHash } from "../../../../../../../core/model/object/invokeObjectHash.js";
5
+ import { AnimationClip } from "../../AnimationClip.js";
6
+ import { AnimationClipDefinition } from "../../AnimationClipDefinition.js";
7
+ import { BlendStateMatrix } from "../../blending/BlendStateMatrix.js";
8
+ import { AnimationStateType } from "../AnimationStateType.js";
9
+ import { AnimationStateDefinition } from "./AnimationStateDefinition.js";
10
10
 
11
11
  export class AnimationGraphDefinition {
12
12
 
@@ -54,7 +54,7 @@ export class AnimationGraphDefinition {
54
54
  * @returns {number}
55
55
  */
56
56
  hash() {
57
- return computeHashIntegerArray(
57
+ return combine_hash(
58
58
  this.startingSate.hash(),
59
59
  computeHashArray(this.states, invokeObjectHash),
60
60
  computeHashArray(this.transitions, invokeObjectHash)
@@ -1,5 +1,5 @@
1
+ import { combine_hash } from "../../../../../../../core/collection/array/combine_hash.js";
1
2
  import { AnimationStateType } from "../AnimationStateType.js";
2
- import { computeHashIntegerArray } from "../../../../../../../core/collection/array/computeHashIntegerArray.js";
3
3
 
4
4
  export class AnimationStateDefinition {
5
5
  constructor() {
@@ -84,7 +84,7 @@ export class AnimationStateDefinition {
84
84
  * @returns {number}
85
85
  */
86
86
  hash() {
87
- return computeHashIntegerArray(
87
+ return combine_hash(
88
88
  this.type,
89
89
  this.motion.hash()
90
90
  );
@@ -1,6 +1,6 @@
1
- import { computeStringHash } from "../../../../../../../core/primitives/strings/computeStringHash.js";
2
- import { computeHashIntegerArray } from "../../../../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../../../../core/collection/array/combine_hash.js";
3
2
  import { computeHashFloat } from "../../../../../../../core/primitives/numbers/computeHashFloat.js";
3
+ import { computeStringHash } from "../../../../../../../core/primitives/strings/computeStringHash.js";
4
4
 
5
5
  export class AnimationTransitionDefinition {
6
6
  constructor() {
@@ -51,7 +51,7 @@ export class AnimationTransitionDefinition {
51
51
  * @returns {number}
52
52
  */
53
53
  hash() {
54
- return computeHashIntegerArray(
54
+ return combine_hash(
55
55
  computeStringHash(this.event),
56
56
  computeHashFloat(this.duration),
57
57
  this.source.hash(),
@@ -1 +1 @@
1
- {"version":3,"file":"computeBufferAttributeHash.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/geometry/buffered/computeBufferAttributeHash.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,sDAHW,MAAM,eAAe,GACnB,MAAM,CAyBlB"}
1
+ {"version":3,"file":"computeBufferAttributeHash.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/geometry/buffered/computeBufferAttributeHash.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,sDAHW,MAAM,eAAe,GACnB,MAAM,CAgBlB"}
@@ -1,6 +1,4 @@
1
- import { min2 } from "../../../../core/math/min2.js";
2
- import { computeStridedArrayHash } from "../../../../core/primitives/array/computeStridedArrayHash.js";
3
- import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
1
+ import { sparse_typed_array_hash } from "../../../../core/collection/array/typed/sparse_typed_array_hash.js";
4
2
 
5
3
  /**
6
4
  *
@@ -16,16 +14,7 @@ export function computeBufferAttributeHash(attribute) {
16
14
 
17
15
  result += data_size;
18
16
 
19
- // limit hash evaluation to first 1k of the data to random memory access and keep CPU cache usage more coherent
20
- const hash_evaluation_length = min2(data_size, 1024);
21
-
22
- // compute stride so that we don't have to iterate over the entire buffer, instead picking at most X(509) values to consider
23
- const stride = Math.max(1, Math.ceil(hash_evaluation_length / 31));
24
-
25
- result ^= computeStridedArrayHash(
26
- data, 0, hash_evaluation_length, stride,
27
- computeHashFloat
28
- );
17
+ result ^= sparse_typed_array_hash(data, 0, data_size);
29
18
 
30
19
  }
31
20
 
@@ -1,7 +1,7 @@
1
1
  import { Box3, BufferGeometry, Frustum, Points, PointsMaterial } from 'three';
2
2
  import { assert } from "../../../../../../core/assert.js";
3
3
  import { BvhClient } from "../../../../../../core/bvh2/bvh3/BvhClient.js";
4
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
4
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
5
5
  import List from "../../../../../../core/collection/list/List.js";
6
6
  import { SCRATCH_UINT32_TRAVERSAL_STACK } from "../../../../../../core/collection/SCRATCH_UINT32_TRAVERSAL_STACK.js";
7
7
  import { AABB3 } from "../../../../../../core/geom/3d/aabb/AABB3.js";
@@ -663,7 +663,7 @@ export class ParticleEmitter {
663
663
  */
664
664
  const flags = this.flags & (SERIALIZABLE_FLAGS);
665
665
 
666
- return computeHashIntegerArray(
666
+ return combine_hash(
667
667
  parameters_hash,
668
668
  layers_hash,
669
669
  this.blendingMode,
@@ -1,4 +1,4 @@
1
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
2
2
  import List from "../../../../../../core/collection/list/List.js";
3
3
  import { AABB3 } from "../../../../../../core/geom/3d/aabb/AABB3.js";
4
4
  import { computeConeBoundingBox } from "../../../../../../core/geom/3d/cone/computeConeBoundingBox.js";
@@ -227,7 +227,7 @@ export class ParticleLayer {
227
227
  }
228
228
 
229
229
  hash() {
230
- return computeHashIntegerArray(
230
+ return combine_hash(
231
231
  computeStringHash(this.imageURL),
232
232
  this.particleLife.hash(),
233
233
  this.particleSize.hash(),
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterLookupTable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js"],"names":[],"mappings":"AAWA;IAsWI;;;;;OAKG;IACH,sBAJW,MAAM,UACN,MAAM,EAAE,cACR,MAAM,EAAE,wBAQlB;IAED;;;;OAIG;IACH,8CAFa,oBAAoB,CA0BhC;IAhZD;;;;OAIG;IACH,uBAHW,MAAM,EAyChB;IAnCG;;;OAGG;IACH,UAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,MAFU,MAAM,EAAE,GAAC,YAAY,CAEjB;IAEd;;;OAGG;IACH,WAFU,MAAM,EAAE,GAAC,YAAY,CAEZ;IAEnB;;;OAGG;IACH,UAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,UAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,cAAc;IAGlB;;;OAGG;IACH,WAFW,yBAAyB,QAInC;IAED;;;OAGG;IACH,aAFW,yBAAyB,GAAC,MAAM,QAI1C;IAED;;;;OAIG;IACH,WAHW,yBAAyB,GACvB,OAAO,CAInB;IAED,yBAEC;IAED,0BAGC;IAED;;;;MAMC;IAED;;;;OAIG;IACH,2CAIC;IAED;;;OAGG;IACH,6CAIC;IAED;;;;OAIG;IACH,iBAHW,MAAM,UACN,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,QA0D5C;IAED,gCAUC;IAED;;;;OAIG;IACH,cAHW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,GAAC,UAAU,cAC7C,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,QA4B5C;IAED;;;;OAIG;IACH,mBAHW,MAAM,SACN,MAAM,EAAE,QAqClB;IAED;;OAEG;IACH,0BAkBC;IAED,eAYC;IAED;;;;OAIG;IACH,cAHW,oBAAoB,GAClB,OAAO,CAenB;IAED,oBAwCC;IAgDL;;;OAGG;IACH,iCAFU,OAAO,CAEoC;CANpD;0CArZyC,gCAAgC"}
1
+ {"version":3,"file":"ParameterLookupTable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.js"],"names":[],"mappings":"AAYA;IA0WI;;;;;OAKG;IACH,sBAJW,MAAM,UACN,MAAM,EAAE,cACR,MAAM,EAAE,wBAQlB;IAED;;;;OAIG;IACH,8CAFa,oBAAoB,CA0BhC;IApZD;;;;OAIG;IACH,uBAHW,MAAM,EAyChB;IAnCG;;;OAGG;IACH,UAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,MAFU,MAAM,EAAE,GAAC,YAAY,CAEjB;IAEd;;;OAGG;IACH,WAFU,MAAM,EAAE,GAAC,YAAY,CAEZ;IAEnB;;;OAGG;IACH,UAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,UAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,cAAc;IAGlB;;;OAGG;IACH,WAFW,yBAAyB,QAInC;IAED;;;OAGG;IACH,aAFW,yBAAyB,GAAC,MAAM,QAI1C;IAED;;;;OAIG;IACH,WAHW,yBAAyB,GACvB,OAAO,CAInB;IAED,yBAEC;IAED,0BAGC;IAED;;;;MAMC;IAED;;;;OAIG;IACH,2CAIC;IAED;;;OAGG;IACH,6CAIC;IAED;;;;OAIG;IACH,iBAHW,MAAM,UACN,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,QA0D5C;IAED,gCAUC;IAED;;;;OAIG;IACH,cAHW,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,GAAC,UAAU,cAC7C,MAAM,EAAE,GAAC,YAAY,GAAC,YAAY,QA4B5C;IAED;;;;OAIG;IACH,mBAHW,MAAM,SACN,MAAM,EAAE,QAqClB;IAED;;OAEG;IACH,0BAkBC;IAED,eAgBC;IAED;;;;OAIG;IACH,cAHW,oBAAoB,GAClB,OAAO,CAenB;IAED,oBAwCC;IAgDL;;;OAGG;IACH,iCAFU,OAAO,CAEoC;CANpD;0CAzZyC,gCAAgC"}
@@ -1,10 +1,11 @@
1
1
  import { assert } from "../../../../../../core/assert.js";
2
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
2
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
3
3
  import { isArrayEqualStrict } from "../../../../../../core/collection/array/isArrayEqualStrict.js";
4
4
  import { computeHashFloatArray } from "../../../../../../core/math/hash/computeHashFloatArray.js";
5
5
  import { inverseLerp } from "../../../../../../core/math/inverseLerp.js";
6
6
  import { max2 } from "../../../../../../core/math/max2.js";
7
7
  import { min2 } from "../../../../../../core/math/min2.js";
8
+ import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
8
9
  import { ParameterLookupTableSerializationAdapter } from "../emitter/serde/ParameterLookupTableSerializationAdapter.js";
9
10
  import { ParameterLookupTableFlags } from "./ParameterLookupTableFlags.js";
10
11
 
@@ -296,12 +297,16 @@ export class ParameterLookupTable {
296
297
  const valueMin = this.valueMin;
297
298
  if (valueMin === valueMax) {
298
299
  //special case, all values are the same
299
- return computeHashIntegerArray(valueMin);
300
+ return computeHashFloat(valueMin);
300
301
  } else {
301
302
  const dataHash = computeHashFloatArray(this.data);
302
303
  const positionHash = computeHashFloatArray(this.positions);
303
304
 
304
- return computeHashIntegerArray(dataHash, positionHash, this.itemSize);
305
+ return combine_hash(
306
+ dataHash,
307
+ positionHash,
308
+ this.itemSize
309
+ );
305
310
  }
306
311
  }
307
312
 
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterTrack.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js"],"names":[],"mappings":"AAUA;IACI,iCAWC;IAVG;;;OAGG;IACH,MAFU,MAAM,CAEA;IAChB;;;OAGG;IACH,OAFU,oBAAoB,CAEd;IAGpB;;;MAKC;IAED,0BAOC;IAED;;;OAGG;IACH,2CAGC;IAED;;;OAGG;IACH,6CAMC;IAED,eAKC;IAED;;;;OAIG;IACH,cAHW,cAAc,GACZ,OAAO,CAInB;CACJ;qCAtEoC,2BAA2B"}
1
+ {"version":3,"file":"ParameterTrack.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/parameter/ParameterTrack.js"],"names":[],"mappings":"AAUA;IACI,iCAWC;IAVG;;;OAGG;IACH,MAFU,MAAM,CAEA;IAChB;;;OAGG;IACH,OAFU,oBAAoB,CAEd;IAGpB;;;MAKC;IAED,0BAOC;IAED;;;OAGG;IACH,2CAGC;IAED;;;OAGG;IACH,6CAMC;IAED,eAKC;IAED;;;;OAIG;IACH,cAHW,cAAc,GACZ,OAAO,CAInB;CACJ;qCApEoC,2BAA2B"}
@@ -4,9 +4,9 @@
4
4
  * @param {ParameterLookupTable} lut
5
5
  * @constructor
6
6
  */
7
- import { ParameterLookupTable } from "./ParameterLookupTable.js";
7
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
8
8
  import { computeStringHash } from "../../../../../../core/primitives/strings/computeStringHash.js";
9
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
9
+ import { ParameterLookupTable } from "./ParameterLookupTable.js";
10
10
 
11
11
  export class ParameterTrack {
12
12
  constructor(name, lut) {
@@ -60,7 +60,7 @@ export class ParameterTrack {
60
60
  }
61
61
 
62
62
  hash() {
63
- return computeHashIntegerArray(
63
+ return combine_hash(
64
64
  computeStringHash(this.name),
65
65
  this.track.hash()
66
66
  );
@@ -1 +1 @@
1
- {"version":3,"file":"ParticleParameter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js"],"names":[],"mappings":"AASA;IACI;;;;;OAKG;IACH,kBAJW,MAAM,YACN,MAAM,EAyChB;IArCG,aAAgB;IAChB,iBAAwB;IAExB;;;OAGG;IACH,QAFU,KAAM,oBAAoB,CAAC,CAEb;IAExB;;;OAGG;IACH,mBAFU,oBAAoB,CAE6B;IAE3D;;;OAGG;IACH,YAFU,MAAM,CAEG;IAEnB;;;OAGG;IACH,UAFU,MAAM,CAEC;IACjB;;;OAGG;IACH,UAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,OAFU,aAAW,IAAI,CAER;IAGrB;;;;MAMC;IAED,0BAaC;IAED;;;OAGG;IACH,2CAIC;IAED;;;OAGG;IACH,6CAIC;IAED;;;OAGG;IACH,qBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,iBAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,kBAHW,MAAM,EAAE,aACR,MAAM,EAAE,QAOlB;IAED;;;;OAIG;IACH,gBAHW,MAAM,OACN,oBAAoB,QAQ9B;IAED,0BAuBC;IAED,cAwBC;IAED,eAUC;IAED;;;;OAIG;IACH,cAHW,iBAAiB,GACf,OAAO,CAoBnB;CACJ;iBAnOgB,gDAAgD;qCAD5B,2BAA2B"}
1
+ {"version":3,"file":"ParticleParameter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/particles/particular/engine/parameter/ParticleParameter.js"],"names":[],"mappings":"AASA;IACI;;;;;OAKG;IACH,kBAJW,MAAM,YACN,MAAM,EAyChB;IArCG,aAAgB;IAChB,iBAAwB;IAExB;;;OAGG;IACH,QAFU,KAAM,oBAAoB,CAAC,CAEb;IAExB;;;OAGG;IACH,mBAFU,oBAAoB,CAE6B;IAE3D;;;OAGG;IACH,YAFU,MAAM,CAEG;IAEnB;;;OAGG;IACH,UAFU,MAAM,CAEC;IACjB;;;OAGG;IACH,UAFU,MAAM,CAEC;IAEjB;;;OAGG;IACH,OAFU,aAAW,IAAI,CAER;IAGrB;;;;MAMC;IAED,0BAaC;IAED;;;OAGG;IACH,2CAIC;IAED;;;OAGG;IACH,6CAIC;IAED;;;OAGG;IACH,qBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,iBAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,kBAHW,MAAM,EAAE,aACR,MAAM,EAAE,QAOlB;IAED;;;;OAIG;IACH,gBAHW,MAAM,OACN,oBAAoB,QAQ9B;IAED,0BAuBC;IAED,cAwBC;IAED,eAUC;IAED;;;;OAIG;IACH,cAHW,iBAAiB,GACf,OAAO,CAoBnB;CACJ;iBArOgB,gDAAgD;qCAI5B,2BAA2B"}
@@ -1,10 +1,10 @@
1
1
  import { assert } from "../../../../../../core/assert.js";
2
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
3
+ import List from "../../../../../../core/collection/list/List.js";
2
4
  import { max2 } from "../../../../../../core/math/max2.js";
3
5
  import { min2 } from "../../../../../../core/math/min2.js";
4
- import { ParameterLookupTable } from "./ParameterLookupTable.js";
5
- import List from "../../../../../../core/collection/list/List.js";
6
6
  import { computeStringHash } from "../../../../../../core/primitives/strings/computeStringHash.js";
7
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
7
+ import { ParameterLookupTable } from "./ParameterLookupTable.js";
8
8
 
9
9
 
10
10
  export class ParticleParameter {
@@ -196,7 +196,7 @@ export class ParticleParameter {
196
196
  hash() {
197
197
  const tracksHash = this.tracks.hash();
198
198
 
199
- return computeHashIntegerArray(
199
+ return combine_hash(
200
200
  tracksHash,
201
201
  computeStringHash(this.name),
202
202
  this.itemSize,
@@ -1 +1 @@
1
- {"version":3,"file":"ProgramValueSlotParameter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameter.js"],"names":[],"mappings":"AA4BA;IACI;;;;;OAKG;IACH,mCAJW,MAAM,EAoBhB;IAfG;;;OAGG;IACH,MAFU,MAAM,CAEA;IAChB;;;OAGG;IACH,MAFU,6BAA6B,CAEvB;IAChB;;;OAGG;IACH,OAFU,MAAM,GAAC,OAAO,8BAAwB,CAE9B;IAGtB,eAMC;CACJ;8CA5D6C,oCAAoC"}
1
+ {"version":3,"file":"ProgramValueSlotParameter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/render/buffer/slot/parameter/ProgramValueSlotParameter.js"],"names":[],"mappings":"AA4BA;IACI;;;;;OAKG;IACH,mCAJW,MAAM,EAoBhB;IAfG;;;OAGG;IACH,MAFU,MAAM,CAEA;IAChB;;;OAGG;IACH,MAFU,6BAA6B,CAEvB;IAChB;;;OAGG;IACH,OAFU,MAAM,GAAC,OAAO,8BAAwB,CAE9B;IAGtB,eAMC;CACJ;8CAzD6C,oCAAoC"}
@@ -1,7 +1,7 @@
1
- import { ProgramValueSlotParameterType } from "./ProgramValueSlotParameterType.js";
2
- import { computeStringHash } from "../../../../../../core/primitives/strings/computeStringHash.js";
3
- import { computeHashIntegerArray } from "../../../../../../core/collection/array/computeHashIntegerArray.js";
1
+ import { combine_hash } from "../../../../../../core/collection/array/combine_hash.js";
4
2
  import { computeHashFloat } from "../../../../../../core/primitives/numbers/computeHashFloat.js";
3
+ import { computeStringHash } from "../../../../../../core/primitives/strings/computeStringHash.js";
4
+ import { ProgramValueSlotParameterType } from "./ProgramValueSlotParameterType.js";
5
5
 
6
6
  /**
7
7
  *
@@ -52,7 +52,7 @@ export class ProgramValueSlotParameter {
52
52
  }
53
53
 
54
54
  hash() {
55
- return computeHashIntegerArray(
55
+ return combine_hash(
56
56
  computeStringHash(this.name),
57
57
  this.type,
58
58
  computeValueHash(this.type, this.value)
@@ -1,5 +1,5 @@
1
1
  import { BinaryDataType } from "../../../../../core/binary/type/BinaryDataType.js";
2
- import { computeHashIntegerArray } from "../../../../../core/collection/array/computeHashIntegerArray.js";
2
+ import { combine_hash } from "../../../../../core/collection/array/combine_hash.js";
3
3
  import { computeStringHash } from "../../../../../core/primitives/strings/computeStringHash.js";
4
4
  import { ResourceDescriptor } from "./ResourceDescriptor.js";
5
5
  import { TextureInitialState } from "./TextureInitialState.js";
@@ -40,7 +40,7 @@ export class TextureResourceDescriptor extends ResourceDescriptor {
40
40
  }
41
41
 
42
42
  hash() {
43
- return computeHashIntegerArray(
43
+ return combine_hash(
44
44
  this.width,
45
45
  this.height,
46
46
  computeStringHash(this.format),
@@ -1,5 +1,5 @@
1
1
  import { assert } from "../../../core/assert.js";
2
- import { computeHashIntegerArray } from "../../../core/collection/array/computeHashIntegerArray.js";
2
+ import { combine_hash } from "../../../core/collection/array/combine_hash.js";
3
3
  import { isArrayEqualStrict } from "../../../core/collection/array/isArrayEqualStrict.js";
4
4
  import Vector2 from '../../../core/geom/Vector2.js';
5
5
  import { computeIntegerArrayHash } from "../../../core/primitives/array/computeIntegerArrayHash.js";
@@ -235,7 +235,7 @@ class GridObstacle {
235
235
  * @returns {number}
236
236
  */
237
237
  hash() {
238
- return computeHashIntegerArray(
238
+ return combine_hash(
239
239
  this.size.hash(),
240
240
  computeIntegerArrayHash(this.data, 0, this.data.length)
241
241
  );
@@ -1,7 +1,7 @@
1
1
  import { assert } from "../../../../core/assert.js";
2
+ import { combine_hash } from "../../../../core/collection/array/combine_hash.js";
2
3
  import { invokeObjectEquals } from "../../../../core/model/object/invokeObjectEquals.js";
3
4
  import { invokeObjectHash } from "../../../../core/model/object/invokeObjectHash.js";
4
- import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
5
5
  import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
6
6
 
7
7
  export class WeightedElement {
@@ -62,7 +62,7 @@ export class WeightedElement {
62
62
  * @return {number}
63
63
  */
64
64
  hash() {
65
- return computeHashIntegerArray(
65
+ return combine_hash(
66
66
  computeHashFloat(this.weight),
67
67
  invokeObjectHash(this.data)
68
68
  );
@@ -1,5 +1,5 @@
1
1
  import { BvhClient } from "../../../../core/bvh2/bvh3/BvhClient.js";
2
- import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
2
+ import { combine_hash } from "../../../../core/collection/array/combine_hash.js";
3
3
  import List from '../../../../core/collection/list/List.js';
4
4
  import { aabb3_array_compute_from_sphere } from "../../../../core/geom/3d/aabb/aabb3_array_compute_from_sphere.js";
5
5
  import Vector1 from "../../../../core/geom/Vector1.js";
@@ -274,7 +274,7 @@ export class SoundEmitter {
274
274
  * @return {number}
275
275
  */
276
276
  hash() {
277
- return computeHashIntegerArray(
277
+ return combine_hash(
278
278
  computeStringHash(this.channel),
279
279
  this.flags,
280
280
  computeHashFloat(this.__distanceMin),
@@ -1 +1 @@
1
- {"version":3,"file":"SoundTrack.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/sound/ecs/emitter/SoundTrack.js"],"names":[],"mappings":"AAWA;IAmbI,uCAMC;IAjbD;;;OAGG;IACH,KAFU,SAAO,IAAI,CAEV;IAEX;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,SAFU,SAAO,IAAI,CAER;IAEb;;;OAGG;IACH,iBAAa;IAEb;;;;OAIG;IACH,UAFU,MAAM,CAEF;IAGd;;;OAGG;IACH,OAFU,MAAM,GAAC,eAAe,CAEV;IAEtB;QACI;;WAEG;eADO,OAAO,IAAI,CAAC;MAGxB;IAEF;;;OAGG;IACH,cAAa;IAGb;;;OAGG;IACH,6BAMC;IAED,0BAEC;IAUD,gCAiDC;IAED,gBASC;IAED;;;;OAIG;IACH,eAHW,UAAU,UAmCpB;IAED;;;;OAIG;IACH,cAHW,MAAM,oBAAkB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,oBAAkB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,oBAAkB,SACxB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,oBAAkB,GACtB,OAAO,CAInB;IAED;;;;;;;;;OASG;IACH,0BAJW,MAAM,YACN,MAAM,eACN,MAAM,QAuChB;IAED;;;OAGG;IACH,wBAMC;IAED;;;OAGG;IACH,qBAEC;IAUD;;;OAGG;IACH,uBAEC;IAdD;;;OAGG;IACH,oBAEC;IAkBD;;;OAGG;IACH,0BAEC;IAdD;;;OAGG;IACH,uBAEC;IAkBD;;;OAGG;IACH,iCAEC;IAdD;;;OAGG;IACH,8BAEC;IAUD;;;OAGG;IACH,YAFW,UAAU,QAOpB;IAED;;;;OAIG;IACH,cAHW,UAAU,GACR,OAAO,CAQnB;IAED;;;OAGG;IACH,QAFY,MAAM,CASjB;IAED;;;OAGG;IACH,SAFY,UAAU,CAQrB;IAED;;;;;;;;;MAWC;IAED;;;;;;;;;aA6BC;;CAUJ;gCArc+B,sBAAsB;mBADnC,0CAA0C"}
1
+ {"version":3,"file":"SoundTrack.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/sound/ecs/emitter/SoundTrack.js"],"names":[],"mappings":"AAWA;IAmbI,uCAMC;IAjbD;;;OAGG;IACH,KAFU,SAAO,IAAI,CAEV;IAEX;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,SAFU,SAAO,IAAI,CAER;IAEb;;;OAGG;IACH,iBAAa;IAEb;;;;OAIG;IACH,UAFU,MAAM,CAEF;IAGd;;;OAGG;IACH,OAFU,MAAM,GAAC,eAAe,CAEV;IAEtB;QACI;;WAEG;eADO,OAAO,IAAI,CAAC;MAGxB;IAEF;;;OAGG;IACH,cAAa;IAGb;;;OAGG;IACH,6BAMC;IAED,0BAEC;IAUD,gCAiDC;IAED,gBASC;IAED;;;;OAIG;IACH,eAHW,UAAU,UAmCpB;IAED;;;;OAIG;IACH,cAHW,MAAM,oBAAkB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,oBAAkB,GACtB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,oBAAkB,SACxB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,oBAAkB,GACtB,OAAO,CAInB;IAED;;;;;;;;;OASG;IACH,0BAJW,MAAM,YACN,MAAM,eACN,MAAM,QAuChB;IAED;;;OAGG;IACH,wBAMC;IAED;;;OAGG;IACH,qBAEC;IAUD;;;OAGG;IACH,uBAEC;IAdD;;;OAGG;IACH,oBAEC;IAkBD;;;OAGG;IACH,0BAEC;IAdD;;;OAGG;IACH,uBAEC;IAkBD;;;OAGG;IACH,iCAEC;IAdD;;;OAGG;IACH,8BAEC;IAUD;;;OAGG;IACH,YAFW,UAAU,QAOpB;IAED;;;;OAIG;IACH,cAHW,UAAU,GACR,OAAO,CAQnB;IAED;;;OAGG;IACH,QAFY,MAAM,CASjB;IAED;;;OAGG;IACH,SAFY,UAAU,CAQrB;IAED;;;;;;;;;MAWC;IAED;;;;;;;;;aA6BC;;CAUJ;gCA/b+B,sBAAsB;mBALnC,0CAA0C"}