Skip to content

Commit 2cfa673

Browse files
committed
fix: snapshots
1 parent 14105dd commit 2cfa673

18 files changed

Lines changed: 121 additions & 133 deletions

test/ecs/composites/cool-sphere.composite.scene-snapshot.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
"parent": 512
2121
}
2222
},
23-
"core-schema::Network-Entity": {},
24-
"core-schema::Network-Parent": {},
2523
"composite::root": {},
2624
"core::MeshRenderer": {
2725
"513": {

test/ecs/composites/cube-scene.composite.scene-snapshot.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
"parent": 512
2121
}
2222
},
23-
"core-schema::Network-Entity": {},
24-
"core-schema::Network-Parent": {},
2523
"composite::root": {},
2624
"core::MeshRenderer": {
2725
"513": {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"core::Transform": {},
3-
"core-schema::Network-Entity": {},
4-
"core-schema::Network-Parent": {},
53
"composite::root": {}
64
}

test/ecs/composites/one-transform.composite.scene-snapshot.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020
"parent": 512
2121
}
2222
},
23-
"core-schema::Network-Entity": {},
24-
"core-schema::Network-Parent": {},
2523
"composite::root": {}
2624
}

test/ecs/composites/parented-transform.composite.scene-snapshot.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
"parent": 513
4040
}
4141
},
42-
"core-schema::Network-Entity": {},
43-
"core-schema::Network-Parent": {},
4442
"composite::root": {},
4543
"custom-parenter": {
4644
"513": {

test/ecs/composites/relative/second-level/one-transform.composite.scene-snapshot.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020
"parent": 512
2121
}
2222
},
23-
"core-schema::Network-Entity": {},
24-
"core-schema::Network-Parent": {},
2523
"composite::root": {}
2624
}

test/snapshots/development-bundles/static-scene.test.ts.crdt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=564.1k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=563k bytes
22
THE BUNDLE HAS SOURCEMAPS
33
(start empty vm 0.21.0-3680274614.commit-1808aa1)
44
OPCODES ~= 0k
@@ -11,9 +11,9 @@ EVAL test/snapshots/development-bundles/static-scene.test.js
1111
REQUIRE: ~system/EngineApi
1212
REQUIRE: ~system/EngineApi
1313
REQUIRE: ~system/Runtime
14-
OPCODES ~= 73k
15-
MALLOC_COUNT = 16301
16-
ALIVE_OBJS_DELTA ~= 3.24k
14+
OPCODES ~= 66k
15+
MALLOC_COUNT = 16514
16+
ALIVE_OBJS_DELTA ~= 3.26k
1717
CALL onStart()
1818
main.crdt: PUT_COMPONENT e=0x200 c=1 t=0 data={"position":{"x":5.880000114440918,"y":2.7916901111602783,"z":7.380000114440918},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
1919
main.crdt: PUT_COMPONENT e=0x202 c=1 t=0 data={"position":{"x":4,"y":0.800000011920929,"z":8},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
@@ -43,18 +43,18 @@ CALL onStart()
4343
main.crdt: PUT_COMPONENT e=0x200 c=1062 t=0 data={"pointerEvents":[{"eventType":1,"eventInfo":{"button":1,"hoverText":"Press E to spawn","maxDistance":100,"showFeedback":true}}]}
4444
main.crdt: PUT_COMPONENT e=0x200 c=1017 t=0 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":1,"g":0.8500000238418579,"b":0.41999998688697815,"a":1}}}}
4545
OPCODES ~= 22k
46-
MALLOC_COUNT = 232
46+
MALLOC_COUNT = 234
4747
ALIVE_OBJS_DELTA ~= 0.09k
4848
CALL onUpdate(0)
4949
~system/Testing: plan {"tests":[{"name":"ensure that cubes are in the scene on the first frame"}]}
50-
OPCODES ~= 19k
50+
OPCODES ~= 18k
5151
MALLOC_COUNT = 67
5252
ALIVE_OBJS_DELTA ~= 0.01k
5353
CALL onUpdate(0.1)
5454
LOG: ["🧪 Running test ensure that cubes are in the scene on the first frame"]
5555
LOG: ["🟢 Test passed ensure that cubes are in the scene on the first frame"]
5656
~system/Testing: logTestResult {"name":"ensure that cubes are in the scene on the first frame","ok":true,"totalFrames":0,"totalTime":0}
57-
OPCODES ~= 5k
57+
OPCODES ~= 4k
5858
MALLOC_COUNT = -5
5959
ALIVE_OBJS_DELTA ~= 0.00k
60-
MEMORY_USAGE_COUNT ~= 1426.65k bytes
60+
MEMORY_USAGE_COUNT ~= 1414.89k bytes
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=564.6k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=563.5k bytes
22
THE BUNDLE HAS SOURCEMAPS
33
(start empty vm 0.21.0-3680274614.commit-1808aa1)
44
OPCODES ~= 0k
@@ -11,21 +11,21 @@ EVAL test/snapshots/development-bundles/testing-fw.test.js
1111
REQUIRE: ~system/EngineApi
1212
REQUIRE: ~system/EngineApi
1313
REQUIRE: ~system/Runtime
14-
OPCODES ~= 83k
15-
MALLOC_COUNT = 16853
16-
ALIVE_OBJS_DELTA ~= 3.40k
14+
OPCODES ~= 66k
15+
MALLOC_COUNT = 16750
16+
ALIVE_OBJS_DELTA ~= 3.33k
1717
CALL onStart()
1818
LOG: ["Adding one to position.y=0"]
1919
Renderer: PUT_COMPONENT e=0x0 c=1 t=1 data={"position":{"x":1,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":9,"y":9,"z":9},"parent":0}
2020
OPCODES ~= 3k
21-
MALLOC_COUNT = 56
21+
MALLOC_COUNT = 60
2222
ALIVE_OBJS_DELTA ~= 0.02k
2323
CALL onUpdate(0)
2424
~system/Testing: plan {"tests":[{"name":"two way communication"}]}
2525
LOG: ["Adding one to position.y=0"]
26-
OPCODES ~= 6k
27-
MALLOC_COUNT = 12
28-
ALIVE_OBJS_DELTA ~= 0.01k
26+
OPCODES ~= 5k
27+
MALLOC_COUNT = 10
28+
ALIVE_OBJS_DELTA ~= 0.00k
2929
CALL onUpdate(0.1)
3030
LOG: ["🧪 Running test two way communication"]
3131
LOG: ["✅ RootEntity has a transform"]
@@ -35,23 +35,23 @@ CALL onUpdate(0.1)
3535
Scene: PUT_COMPONENT e=0x200 c=1 t=1 data={"position":{"x":0,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
3636
LOG: ["Adding one to position.y=1"]
3737
Renderer: PUT_COMPONENT e=0x0 c=1 t=3 data={"position":{"x":2,"y":1,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":9,"y":9,"z":9},"parent":0}
38-
OPCODES ~= 11k
38+
OPCODES ~= 10k
3939
MALLOC_COUNT = 80
4040
ALIVE_OBJS_DELTA ~= 0.02k
4141
CALL onUpdate(0.1)
4242
LOG: ["⏱️ yield"]
4343
Scene: DELETE_COMPONENT e=0x200 c=1 t=2 data=null
4444
Scene: DELETE_COMPONENT e=0x0 c=1 t=4 data=null
4545
Scene: DELETE_ENTITY e=0x200
46-
OPCODES ~= 10k
46+
OPCODES ~= 9k
4747
MALLOC_COUNT = -78
4848
ALIVE_OBJS_DELTA ~= -0.03k
4949
CALL onUpdate(0.1)
5050
LOG: ["⏱️ yield"]
5151
Scene: PUT_COMPONENT e=0x0 c=1 t=5 data={"position":{"x":0,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
5252
LOG: ["Adding one to position.y=0"]
5353
Renderer: PUT_COMPONENT e=0x0 c=1 t=6 data={"position":{"x":1,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
54-
OPCODES ~= 8k
54+
OPCODES ~= 7k
5555
MALLOC_COUNT = 48
5656
ALIVE_OBJS_DELTA ~= 0.02k
5757
CALL onUpdate(0.1)
@@ -60,7 +60,7 @@ CALL onUpdate(0.1)
6060
LOG: ["🟢 Test passed two way communication"]
6161
~system/Testing: logTestResult {"name":"two way communication","ok":true,"totalFrames":3,"totalTime":0.30000000000000004}
6262
LOG: ["Adding one to position.y=0"]
63-
OPCODES ~= 6k
63+
OPCODES ~= 5k
6464
MALLOC_COUNT = -53
6565
ALIVE_OBJS_DELTA ~= -0.01k
66-
MEMORY_USAGE_COUNT ~= 1432.41k bytes
66+
MEMORY_USAGE_COUNT ~= 1413.56k bytes
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=564.7k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=563.5k bytes
22
THE BUNDLE HAS SOURCEMAPS
33
(start empty vm 0.21.0-3680274614.commit-1808aa1)
44
OPCODES ~= 0k
@@ -11,21 +11,21 @@ EVAL test/snapshots/development-bundles/two-way-crdt.test.js
1111
REQUIRE: ~system/EngineApi
1212
REQUIRE: ~system/EngineApi
1313
REQUIRE: ~system/Runtime
14-
OPCODES ~= 83k
15-
MALLOC_COUNT = 16853
16-
ALIVE_OBJS_DELTA ~= 3.40k
14+
OPCODES ~= 66k
15+
MALLOC_COUNT = 16750
16+
ALIVE_OBJS_DELTA ~= 3.33k
1717
CALL onStart()
1818
LOG: ["Adding one to position.y=0"]
1919
Renderer: PUT_COMPONENT e=0x0 c=1 t=1 data={"position":{"x":1,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":9,"y":9,"z":9},"parent":0}
2020
OPCODES ~= 3k
21-
MALLOC_COUNT = 56
21+
MALLOC_COUNT = 60
2222
ALIVE_OBJS_DELTA ~= 0.02k
2323
CALL onUpdate(0)
2424
~system/Testing: plan {"tests":[{"name":"two way communication"}]}
2525
LOG: ["Adding one to position.y=0"]
26-
OPCODES ~= 6k
27-
MALLOC_COUNT = 12
28-
ALIVE_OBJS_DELTA ~= 0.01k
26+
OPCODES ~= 5k
27+
MALLOC_COUNT = 10
28+
ALIVE_OBJS_DELTA ~= 0.00k
2929
CALL onUpdate(0.1)
3030
LOG: ["🧪 Running test two way communication"]
3131
LOG: ["✅ RootEntity has a transform"]
@@ -35,23 +35,23 @@ CALL onUpdate(0.1)
3535
Scene: PUT_COMPONENT e=0x200 c=1 t=1 data={"position":{"x":0,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
3636
LOG: ["Adding one to position.y=1"]
3737
Renderer: PUT_COMPONENT e=0x0 c=1 t=3 data={"position":{"x":2,"y":1,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":9,"y":9,"z":9},"parent":0}
38-
OPCODES ~= 11k
38+
OPCODES ~= 10k
3939
MALLOC_COUNT = 80
4040
ALIVE_OBJS_DELTA ~= 0.02k
4141
CALL onUpdate(0.1)
4242
LOG: ["⏱️ yield"]
4343
Scene: DELETE_COMPONENT e=0x200 c=1 t=2 data=null
4444
Scene: DELETE_COMPONENT e=0x0 c=1 t=4 data=null
4545
Scene: DELETE_ENTITY e=0x200
46-
OPCODES ~= 10k
46+
OPCODES ~= 9k
4747
MALLOC_COUNT = -78
4848
ALIVE_OBJS_DELTA ~= -0.03k
4949
CALL onUpdate(0.1)
5050
LOG: ["⏱️ yield"]
5151
Scene: PUT_COMPONENT e=0x0 c=1 t=5 data={"position":{"x":0,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
5252
LOG: ["Adding one to position.y=0"]
5353
Renderer: PUT_COMPONENT e=0x0 c=1 t=6 data={"position":{"x":1,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
54-
OPCODES ~= 8k
54+
OPCODES ~= 7k
5555
MALLOC_COUNT = 48
5656
ALIVE_OBJS_DELTA ~= 0.02k
5757
CALL onUpdate(0.1)
@@ -60,7 +60,7 @@ CALL onUpdate(0.1)
6060
LOG: ["🟢 Test passed two way communication"]
6161
~system/Testing: logTestResult {"name":"two way communication","ok":true,"totalFrames":3,"totalTime":0.30000000000000004}
6262
LOG: ["Adding one to position.y=0"]
63-
OPCODES ~= 6k
63+
OPCODES ~= 5k
6464
MALLOC_COUNT = -53
6565
ALIVE_OBJS_DELTA ~= -0.01k
66-
MEMORY_USAGE_COUNT ~= 1432.41k bytes
66+
MEMORY_USAGE_COUNT ~= 1413.57k bytes
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=248k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=247.6k bytes
22
(start empty vm 0.21.0-3680274614.commit-1808aa1)
33
OPCODES ~= 0k
44
MALLOC_COUNT = 1005
@@ -9,13 +9,13 @@ EVAL test/snapshots/production-bundles/append-value-crdt.js
99
REQUIRE: ~system/EngineApi
1010
REQUIRE: ~system/EngineApi
1111
REQUIRE: ~system/Runtime
12-
OPCODES ~= 85k
13-
MALLOC_COUNT = 15161
14-
ALIVE_OBJS_DELTA ~= 3.40k
12+
OPCODES ~= 69k
13+
MALLOC_COUNT = 15076
14+
ALIVE_OBJS_DELTA ~= 3.33k
1515
CALL onStart()
1616
Renderer: APPEND_VALUE e=0x200 c=1063 t=0 data={"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":1,"timestamp":1,"analog":5,"tickNumber":0}
1717
OPCODES ~= 8k
18-
MALLOC_COUNT = 90
18+
MALLOC_COUNT = 94
1919
ALIVE_OBJS_DELTA ~= 0.03k
2020
CALL onUpdate(0)
2121
LOG: ["PointerEventsResult",[{"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":1,"timestamp":1,"analog":5,"tickNumber":0}]]
@@ -24,8 +24,8 @@ CALL onUpdate(0)
2424
LOG: ["✅ Has DOWN command"]
2525
Scene: PUT_COMPONENT e=0x200 c=1 t=1 data={"position":{"x":0,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
2626
Renderer: APPEND_VALUE e=0x200 c=1063 t=0 data={"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":0,"timestamp":2,"analog":5,"tickNumber":0}
27-
OPCODES ~= 18k
28-
MALLOC_COUNT = 91
27+
OPCODES ~= 17k
28+
MALLOC_COUNT = 89
2929
ALIVE_OBJS_DELTA ~= 0.03k
3030
CALL onUpdate(0.1)
3131
LOG: ["PointerEventsResult",[{"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":1,"timestamp":1,"analog":5,"tickNumber":0},{"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":0,"timestamp":2,"analog":5,"tickNumber":0}]]
@@ -34,7 +34,7 @@ CALL onUpdate(0.1)
3434
LOG: ["✅ UP Was triggered"]
3535
LOG: ["✅ Doesn't have DOWN command"]
3636
Renderer: APPEND_VALUE e=0x200 c=1063 t=0 data={"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":1,"timestamp":3,"analog":5,"tickNumber":0}
37-
OPCODES ~= 15k
37+
OPCODES ~= 14k
3838
MALLOC_COUNT = 31
3939
ALIVE_OBJS_DELTA ~= 0.01k
4040
CALL onUpdate(0.1)
@@ -43,7 +43,7 @@ CALL onUpdate(0.1)
4343
LOG: ["✅ Was triggered"]
4444
LOG: ["✅ Has DOWN command"]
4545
Renderer: APPEND_VALUE e=0x200 c=1063 t=0 data={"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":0,"timestamp":4,"analog":5,"tickNumber":0}
46-
OPCODES ~= 15k
46+
OPCODES ~= 14k
4747
MALLOC_COUNT = 31
4848
ALIVE_OBJS_DELTA ~= 0.01k
4949
CALL onUpdate(0.1)
@@ -53,7 +53,7 @@ CALL onUpdate(0.1)
5353
LOG: ["isTriggered(RootEntity)=",false]
5454
LOG: ["getCommand(RootEntity)=",null]
5555
Renderer: APPEND_VALUE e=0x200 c=1063 t=0 data={"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":1,"timestamp":5,"analog":5,"tickNumber":0}
56-
OPCODES ~= 15k
56+
OPCODES ~= 14k
5757
MALLOC_COUNT = 31
5858
ALIVE_OBJS_DELTA ~= 0.01k
59-
MEMORY_USAGE_COUNT ~= 1069.14k bytes
59+
MEMORY_USAGE_COUNT ~= 1052.86k bytes

0 commit comments

Comments
 (0)