Skip to content

Commit

Permalink
chore: put snapshots comparison back (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
leanmendoza authored Nov 11, 2024
1 parent 680459b commit 9328e04
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 126 deletions.
2 changes: 1 addition & 1 deletion test/snapshots.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function testFileSnapshot(fileName: string, _productionBuild: boolean) {
writeFileSync(compareToFileName, result)
}
expect(compareTo.trim().length > 0 || !compareFileExists).toEqual(true)
// expect(result.trim()).toEqual(compareTo.trim())
expect(result.trim()).toEqual(compareTo.trim())
// if (leaking) throw new Error('Ran successfully but leaking memory')
}, 60000)
}
Expand Down
16 changes: 8 additions & 8 deletions test/snapshots/development-bundles/static-scene.test.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=407.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=452.9k bytes
THE BUNDLE HAS SOURCEMAPS
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
Expand All @@ -10,9 +10,9 @@ EVAL test/snapshots/development-bundles/static-scene.test.js
REQUIRE: ~system/Testing
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 47k
MALLOC_COUNT = 11366
ALIVE_OBJS_DELTA ~= 2.16k
OPCODES ~= 54k
MALLOC_COUNT = 13672
ALIVE_OBJS_DELTA ~= 2.70k
CALL onStart()
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}
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}
Expand Down Expand Up @@ -42,12 +42,12 @@ CALL onStart()
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}}]}
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}}}}
OPCODES ~= 22k
MALLOC_COUNT = 234
MALLOC_COUNT = 232
ALIVE_OBJS_DELTA ~= 0.09k
CALL onUpdate(0)
~system/Testing: plan {"tests":[{"name":"ensure that cubes are in the scene on the first frame"}]}
OPCODES ~= 14k
MALLOC_COUNT = -83
OPCODES ~= 17k
MALLOC_COUNT = -61
ALIVE_OBJS_DELTA ~= -0.03k
CALL onUpdate(0.1)
LOG: ["🧪 Running test ensure that cubes are in the scene on the first frame"]
Expand All @@ -56,4 +56,4 @@ CALL onUpdate(0.1)
OPCODES ~= 3k
MALLOC_COUNT = -5
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 1064.35k bytes
MEMORY_USAGE_COUNT ~= 1193.93k bytes
22 changes: 11 additions & 11 deletions test/snapshots/development-bundles/testing-fw.test.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=407.9k bytes
SCENE_COMPILED_JS_SIZE_PROD=453.4k bytes
THE BUNDLE HAS SOURCEMAPS
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
Expand All @@ -10,20 +10,20 @@ EVAL test/snapshots/development-bundles/testing-fw.test.js
REQUIRE: ~system/Testing
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 56k
MALLOC_COUNT = 11764
ALIVE_OBJS_DELTA ~= 2.28k
OPCODES ~= 63k
MALLOC_COUNT = 14193
ALIVE_OBJS_DELTA ~= 2.85k
CALL onStart()
LOG: ["Adding one to position.y=0"]
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}
OPCODES ~= 3k
MALLOC_COUNT = 50
MALLOC_COUNT = 48
ALIVE_OBJS_DELTA ~= 0.02k
CALL onUpdate(0)
~system/Testing: plan {"tests":[{"name":"two way communication"}]}
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=2 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}
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = 17
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
Expand All @@ -35,23 +35,23 @@ CALL onUpdate(0.1)
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}
LOG: ["Adding one to position.y=1"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=4 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}
OPCODES ~= 9k
OPCODES ~= 10k
MALLOC_COUNT = 51
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
LOG: ["⏱️ yield"]
Scene: DELETE_COMPONENT e=0x200 c=1 t=2 data=null
Scene: DELETE_COMPONENT e=0x0 c=1 t=5 data=null
Scene: DELETE_ENTITY e=0x200
OPCODES ~= 6k
OPCODES ~= 8k
MALLOC_COUNT = -46
ALIVE_OBJS_DELTA ~= -0.02k
CALL onUpdate(0.1)
LOG: ["⏱️ yield"]
Scene: PUT_COMPONENT e=0x0 c=1 t=6 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}
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=7 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}
OPCODES ~= 6k
OPCODES ~= 7k
MALLOC_COUNT = 32
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
Expand All @@ -61,7 +61,7 @@ CALL onUpdate(0.1)
~system/Testing: logTestResult {"name":"two way communication","ok":true,"totalFrames":3,"totalTime":0.30000000000000004}
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=8 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}
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = -40
ALIVE_OBJS_DELTA ~= -0.01k
MEMORY_USAGE_COUNT ~= 1070.59k bytes
MEMORY_USAGE_COUNT ~= 1202.54k bytes
22 changes: 11 additions & 11 deletions test/snapshots/development-bundles/two-way-crdt.test.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=408k bytes
SCENE_COMPILED_JS_SIZE_PROD=453.4k bytes
THE BUNDLE HAS SOURCEMAPS
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
Expand All @@ -10,20 +10,20 @@ EVAL test/snapshots/development-bundles/two-way-crdt.test.js
REQUIRE: ~system/Testing
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 56k
MALLOC_COUNT = 11764
ALIVE_OBJS_DELTA ~= 2.28k
OPCODES ~= 63k
MALLOC_COUNT = 14193
ALIVE_OBJS_DELTA ~= 2.85k
CALL onStart()
LOG: ["Adding one to position.y=0"]
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}
OPCODES ~= 3k
MALLOC_COUNT = 50
MALLOC_COUNT = 48
ALIVE_OBJS_DELTA ~= 0.02k
CALL onUpdate(0)
~system/Testing: plan {"tests":[{"name":"two way communication"}]}
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=2 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}
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = 17
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
Expand All @@ -35,23 +35,23 @@ CALL onUpdate(0.1)
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}
LOG: ["Adding one to position.y=1"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=4 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}
OPCODES ~= 9k
OPCODES ~= 10k
MALLOC_COUNT = 51
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
LOG: ["⏱️ yield"]
Scene: DELETE_COMPONENT e=0x200 c=1 t=2 data=null
Scene: DELETE_COMPONENT e=0x0 c=1 t=5 data=null
Scene: DELETE_ENTITY e=0x200
OPCODES ~= 6k
OPCODES ~= 8k
MALLOC_COUNT = -46
ALIVE_OBJS_DELTA ~= -0.02k
CALL onUpdate(0.1)
LOG: ["⏱️ yield"]
Scene: PUT_COMPONENT e=0x0 c=1 t=6 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}
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=7 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}
OPCODES ~= 6k
OPCODES ~= 7k
MALLOC_COUNT = 32
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
Expand All @@ -61,7 +61,7 @@ CALL onUpdate(0.1)
~system/Testing: logTestResult {"name":"two way communication","ok":true,"totalFrames":3,"totalTime":0.30000000000000004}
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=8 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}
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = -40
ALIVE_OBJS_DELTA ~= -0.01k
MEMORY_USAGE_COUNT ~= 1070.60k bytes
MEMORY_USAGE_COUNT ~= 1202.55k bytes
2 changes: 1 addition & 1 deletion test/snapshots/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions test/snapshots/production-bundles/append-value-crdt.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=180.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=197.8k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,13 +8,13 @@ EVAL test/snapshots/production-bundles/append-value-crdt.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 57k
MALLOC_COUNT = 10475
ALIVE_OBJS_DELTA ~= 2.29k
OPCODES ~= 65k
MALLOC_COUNT = 12721
ALIVE_OBJS_DELTA ~= 2.84k
CALL onStart()
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}
OPCODES ~= 8k
MALLOC_COUNT = 92
MALLOC_COUNT = 90
ALIVE_OBJS_DELTA ~= 0.03k
CALL onUpdate(0)
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}]]
Expand All @@ -23,8 +23,8 @@ CALL onUpdate(0)
LOG: ["✅ Has DOWN command"]
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}
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}
OPCODES ~= 15k
MALLOC_COUNT = 81
OPCODES ~= 16k
MALLOC_COUNT = 79
ALIVE_OBJS_DELTA ~= 0.03k
CALL onUpdate(0.1)
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}]]
Expand All @@ -33,7 +33,7 @@ CALL onUpdate(0.1)
LOG: ["✅ UP Was triggered"]
LOG: ["✅ Doesn't have DOWN command"]
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}
OPCODES ~= 13k
OPCODES ~= 14k
MALLOC_COUNT = 31
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
Expand All @@ -52,7 +52,7 @@ CALL onUpdate(0.1)
LOG: ["isTriggered(RootEntity)=",false]
LOG: ["getCommand(RootEntity)=",null]
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}
OPCODES ~= 13k
OPCODES ~= 14k
MALLOC_COUNT = 31
ALIVE_OBJS_DELTA ~= 0.01k
MEMORY_USAGE_COUNT ~= 793.46k bytes
MEMORY_USAGE_COUNT ~= 899.15k bytes
14 changes: 7 additions & 7 deletions test/snapshots/production-bundles/billboard.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=213.3k bytes
SCENE_COMPILED_JS_SIZE_PROD=230.9k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/billboard.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 59k
MALLOC_COUNT = 12487
ALIVE_OBJS_DELTA ~= 2.66k
OPCODES ~= 66k
MALLOC_COUNT = 14834
ALIVE_OBJS_DELTA ~= 3.24k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 4
Expand Down Expand Up @@ -50,8 +50,8 @@ CALL onUpdate(0)
Scene: PUT_COMPONENT e=0x203 c=1018 t=1 data={"mesh":{"$case":"plane","plane":{"uvs":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0]}}}
Scene: PUT_COMPONENT e=0x204 c=1018 t=1 data={"mesh":{"$case":"plane","plane":{"uvs":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0]}}}
Scene: PUT_COMPONENT e=0x205 c=1018 t=1 data={"mesh":{"$case":"plane","plane":{"uvs":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0]}}}
OPCODES ~= 109k
MALLOC_COUNT = 59
OPCODES ~= 112k
MALLOC_COUNT = 57
ALIVE_OBJS_DELTA ~= 0.02k
CALL onUpdate(0.1)
Scene: PUT_COMPONENT e=0x200 c=1 t=2 data={"position":{"x":8,"y":3.0420734882354736,"z":1},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":2,"y":2,"z":2},"parent":0}
Expand All @@ -77,4 +77,4 @@ CALL onUpdate(0.1)
OPCODES ~= 9k
MALLOC_COUNT = 0
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 938.12k bytes
MEMORY_USAGE_COUNT ~= 1041.51k bytes
20 changes: 10 additions & 10 deletions test/snapshots/production-bundles/cube-deleted.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=177.2k bytes
SCENE_COMPILED_JS_SIZE_PROD=194.1k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,38 +8,38 @@ EVAL test/snapshots/production-bundles/cube-deleted.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 48k
MALLOC_COUNT = 9723
ALIVE_OBJS_DELTA ~= 2.09k
OPCODES ~= 55k
MALLOC_COUNT = 11876
ALIVE_OBJS_DELTA ~= 2.62k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 6
ALIVE_OBJS_DELTA ~= 0.00k
CALL onUpdate(0)
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}
Scene: PUT_COMPONENT e=0x201 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}}
OPCODES ~= 3k
MALLOC_COUNT = 52
OPCODES ~= 4k
MALLOC_COUNT = 50
ALIVE_OBJS_DELTA ~= 0.02k
CALL onUpdate(0.1)
Scene: DELETE_COMPONENT e=0x201 c=1019 t=2 data=null
Scene: PUT_COMPONENT e=0x202 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}}
Scene: DELETE_ENTITY e=0x201
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = 6
ALIVE_OBJS_DELTA ~= 0.00k
CALL onUpdate(0.1)
Scene: DELETE_COMPONENT e=0x202 c=1019 t=2 data=null
Scene: PUT_COMPONENT e=0x10201 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}}
Scene: DELETE_ENTITY e=0x202
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = 2
ALIVE_OBJS_DELTA ~= 0.00k
CALL onUpdate(0.1)
Scene: DELETE_COMPONENT e=0x10201 c=1019 t=2 data=null
Scene: PUT_COMPONENT e=0x10202 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}}
Scene: DELETE_ENTITY e=0x10201
OPCODES ~= 4k
OPCODES ~= 5k
MALLOC_COUNT = 1
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 760.57k bytes
MEMORY_USAGE_COUNT ~= 861.88k bytes
14 changes: 7 additions & 7 deletions test/snapshots/production-bundles/cube.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=176.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=193.9k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,17 +8,17 @@ EVAL test/snapshots/production-bundles/cube.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 48k
MALLOC_COUNT = 9569
ALIVE_OBJS_DELTA ~= 2.05k
OPCODES ~= 55k
MALLOC_COUNT = 11849
ALIVE_OBJS_DELTA ~= 2.61k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 6
ALIVE_OBJS_DELTA ~= 0.00k
CALL onUpdate(0)
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}
OPCODES ~= 2k
MALLOC_COUNT = 29
OPCODES ~= 3k
MALLOC_COUNT = 27
ALIVE_OBJS_DELTA ~= 0.01k
CALL onUpdate(0.1)
OPCODES ~= 1k
Expand All @@ -32,4 +32,4 @@ CALL onUpdate(0.1)
OPCODES ~= 1k
MALLOC_COUNT = 0
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 745.34k bytes
MEMORY_USAGE_COUNT ~= 851.79k bytes
Loading

0 comments on commit 9328e04

Please sign in to comment.