diff --git a/test/snapshots.spec.ts b/test/snapshots.spec.ts index b508ccd53..4f58c55a0 100644 --- a/test/snapshots.spec.ts +++ b/test/snapshots.spec.ts @@ -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) } diff --git a/test/snapshots/development-bundles/static-scene.test.ts.crdt b/test/snapshots/development-bundles/static-scene.test.ts.crdt index f01fa3eb9..e1a15a89a 100644 --- a/test/snapshots/development-bundles/static-scene.test.ts.crdt +++ b/test/snapshots/development-bundles/static-scene.test.ts.crdt @@ -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 @@ -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} @@ -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"] @@ -56,4 +56,4 @@ CALL onUpdate(0.1) OPCODES ~= 3k MALLOC_COUNT = -5 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 1064.35k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 1193.93k bytes \ No newline at end of file diff --git a/test/snapshots/development-bundles/testing-fw.test.ts.crdt b/test/snapshots/development-bundles/testing-fw.test.ts.crdt index 91488af35..9402cfc5f 100644 --- a/test/snapshots/development-bundles/testing-fw.test.ts.crdt +++ b/test/snapshots/development-bundles/testing-fw.test.ts.crdt @@ -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 @@ -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) @@ -35,7 +35,7 @@ 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) @@ -43,7 +43,7 @@ CALL onUpdate(0.1) 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) @@ -51,7 +51,7 @@ CALL onUpdate(0.1) 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) @@ -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 \ No newline at end of file + MEMORY_USAGE_COUNT ~= 1202.54k bytes \ No newline at end of file diff --git a/test/snapshots/development-bundles/two-way-crdt.test.ts.crdt b/test/snapshots/development-bundles/two-way-crdt.test.ts.crdt index 35ce145c6..e9f2e6996 100644 --- a/test/snapshots/development-bundles/two-way-crdt.test.ts.crdt +++ b/test/snapshots/development-bundles/two-way-crdt.test.ts.crdt @@ -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 @@ -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) @@ -35,7 +35,7 @@ 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) @@ -43,7 +43,7 @@ CALL onUpdate(0.1) 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) @@ -51,7 +51,7 @@ CALL onUpdate(0.1) 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) @@ -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 \ No newline at end of file + MEMORY_USAGE_COUNT ~= 1202.55k bytes \ No newline at end of file diff --git a/test/snapshots/package-lock.json b/test/snapshots/package-lock.json index 9ae988780..401ef4a4b 100644 --- a/test/snapshots/package-lock.json +++ b/test/snapshots/package-lock.json @@ -149,7 +149,7 @@ "license": "Apache-2.0", "dependencies": { "@dcl/ecs": "file:../ecs", - "@dcl/ecs-math": "2.0.2", + "@dcl/ecs-math": "2.1.0", "@dcl/explorer": "1.0.164509-20240802172549.commit-fb95b9b", "@dcl/js-runtime": "file:../js-runtime", "@dcl/react-ecs": "file:../react-ecs", diff --git a/test/snapshots/production-bundles/append-value-crdt.ts.crdt b/test/snapshots/production-bundles/append-value-crdt.ts.crdt index 8e17f091a..bf88349ba 100644 --- a/test/snapshots/production-bundles/append-value-crdt.ts.crdt +++ b/test/snapshots/production-bundles/append-value-crdt.ts.crdt @@ -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 @@ -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}]] @@ -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}]] @@ -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) @@ -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 \ No newline at end of file + MEMORY_USAGE_COUNT ~= 899.15k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/billboard.ts.crdt b/test/snapshots/production-bundles/billboard.ts.crdt index 359d1bca8..d70fca77a 100644 --- a/test/snapshots/production-bundles/billboard.ts.crdt +++ b/test/snapshots/production-bundles/billboard.ts.crdt @@ -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 @@ -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 @@ -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} @@ -77,4 +77,4 @@ CALL onUpdate(0.1) OPCODES ~= 9k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 938.12k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 1041.51k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/cube-deleted.ts.crdt b/test/snapshots/production-bundles/cube-deleted.ts.crdt index 3772764c6..b4ffc63a1 100644 --- a/test/snapshots/production-bundles/cube-deleted.ts.crdt +++ b/test/snapshots/production-bundles/cube-deleted.ts.crdt @@ -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 @@ -8,9 +8,9 @@ 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 @@ -18,28 +18,28 @@ CALL onStart() 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 \ No newline at end of file + MEMORY_USAGE_COUNT ~= 861.88k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/cube.ts.crdt b/test/snapshots/production-bundles/cube.ts.crdt index 7d5f175a5..c9344e0fc 100644 --- a/test/snapshots/production-bundles/cube.ts.crdt +++ b/test/snapshots/production-bundles/cube.ts.crdt @@ -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 @@ -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 @@ -32,4 +32,4 @@ CALL onUpdate(0.1) OPCODES ~= 1k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 745.34k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 851.79k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/cubes.ts.crdt b/test/snapshots/production-bundles/cubes.ts.crdt index 72ab2d5f6..59c41b18b 100644 --- a/test/snapshots/production-bundles/cubes.ts.crdt +++ b/test/snapshots/production-bundles/cubes.ts.crdt @@ -1,4 +1,4 @@ -SCENE_COMPILED_JS_SIZE_PROD=213.6k bytes +SCENE_COMPILED_JS_SIZE_PROD=231.2k bytes (start empty vm 0.21.0-3680274614.commit-1808aa1) OPCODES ~= 0k MALLOC_COUNT = 1005 @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/cubes.js REQUIRE: long REQUIRE: ~system/EngineApi REQUIRE: ~system/EngineApi - OPCODES ~= 104k - MALLOC_COUNT = 15939 - ALIVE_OBJS_DELTA ~= 3.98k + OPCODES ~= 105k + MALLOC_COUNT = 18176 + ALIVE_OBJS_DELTA ~= 4.53k CALL onStart() OPCODES ~= 0k MALLOC_COUNT = 6 @@ -199,11 +199,11 @@ CALL onUpdate(0) Scene: PUT_COMPONENT e=0x2b4 c=1 t=1 data={"position":{"x":15.5,"y":0.535217821598053,"z":8.5},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":0.5,"y":0.5,"z":0.5},"parent":0} Scene: PUT_COMPONENT e=0x2b5 c=1 t=1 data={"position":{"x":15.5,"y":0.47935929894447327,"z":9.5},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":0.5,"y":0.5,"z":0.5},"parent":0} Scene: PUT_COMPONENT e=0x2b6 c=1 t=1 data={"position":{"x":15.5,"y":0.3782283067703247,"z":10.5},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":0.5,"y":0.5,"z":0.5},"parent":0} - Scene: PUT_COMPONENT e=0x200 c=1090 t=1 data={} - Scene: PUT_COMPONENT e=0x206 c=1090 t=1 data={"billboardMode":0} Scene: PUT_COMPONENT e=0x203 c=1041 t=1 data={"src":"models/shark.glb"} Scene: PUT_COMPONENT e=0x204 c=1041 t=1 data={"src":"models/Fish_01.glb"} Scene: PUT_COMPONENT e=0x205 c=1041 t=1 data={"src":"models/Underwater_floor.glb"} + Scene: PUT_COMPONENT e=0x200 c=1090 t=1 data={} + Scene: PUT_COMPONENT e=0x206 c=1090 t=1 data={"billboardMode":0} Scene: PUT_COMPONENT e=0x206 c=1030 t=1 data={"text":"Stress test SDK v7.0.5\n16x16 cubes","fontSize":5,"fontAutoSize":false,"width":4,"height":2,"paddingTop":0,"paddingRight":0,"paddingBottom":0,"paddingLeft":0,"lineSpacing":1,"lineCount":1,"textWrapping":false,"shadowBlur":1,"shadowOffsetX":0,"shadowOffsetY":5,"outlineWidth":0.10000000149011612,"shadowColor":{"r":1,"g":0,"b":0},"outlineColor":{"r":0,"g":0,"b":1},"textColor":{"r":1,"g":0,"b":0,"a":1}} Scene: PUT_COMPONENT e=0x200 c=1017 t=1 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x201 c=1017 t=1 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} @@ -563,8 +563,8 @@ CALL onUpdate(0) Scene: PUT_COMPONENT e=0x2b4 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} Scene: PUT_COMPONENT e=0x2b5 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} Scene: PUT_COMPONENT e=0x2b6 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} - OPCODES ~= 956k - MALLOC_COUNT = 1842 + OPCODES ~= 998k + MALLOC_COUNT = 1840 ALIVE_OBJS_DELTA ~= 0.74k CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x200 c=1 t=2 data={"position":{"x":-3,"y":2.7722561359405518,"z":-3},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":0.5,"y":0.5,"z":0.5},"parent":0} @@ -925,7 +925,7 @@ CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x2b4 c=1017 t=2 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x2b5 c=1017 t=2 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x2b6 c=1017 t=2 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} - OPCODES ~= 663k + OPCODES ~= 691k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k CALL onUpdate(0.1) @@ -1287,7 +1287,7 @@ CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x2b4 c=1017 t=3 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x2b5 c=1017 t=3 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x2b6 c=1017 t=3 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} - OPCODES ~= 663k + OPCODES ~= 691k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k CALL onUpdate(0.1) @@ -1649,7 +1649,7 @@ CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x2b4 c=1017 t=4 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x2b5 c=1017 t=4 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} Scene: PUT_COMPONENT e=0x2b6 c=1017 t=4 data={"material":{"$case":"pbr","pbr":{"albedoColor":{"r":0,"g":0,"b":1,"a":1}}}} - OPCODES ~= 663k + OPCODES ~= 691k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 1076.32k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 1177.44k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/pointer-events.ts.crdt b/test/snapshots/production-bundles/pointer-events.ts.crdt index 2d22d6091..5c7da6d40 100644 --- a/test/snapshots/production-bundles/pointer-events.ts.crdt +++ b/test/snapshots/production-bundles/pointer-events.ts.crdt @@ -1,4 +1,4 @@ -SCENE_COMPILED_JS_SIZE_PROD=178k bytes +SCENE_COMPILED_JS_SIZE_PROD=194.9k bytes (start empty vm 0.21.0-3680274614.commit-1808aa1) OPCODES ~= 0k MALLOC_COUNT = 1005 @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/pointer-events.js REQUIRE: long REQUIRE: ~system/EngineApi REQUIRE: ~system/EngineApi - OPCODES ~= 49k - MALLOC_COUNT = 10071 - ALIVE_OBJS_DELTA ~= 2.19k + OPCODES ~= 56k + MALLOC_COUNT = 12135 + ALIVE_OBJS_DELTA ~= 2.70k CALL onStart() OPCODES ~= 0k MALLOC_COUNT = 6 @@ -22,15 +22,15 @@ CALL onUpdate(0) Scene: PUT_COMPONENT e=0x200 c=1062 t=1 data={"pointerEvents":[{"eventType":1,"eventInfo":{"button":1,"hoverText":"PrimaryDown","maxDistance":5,"showFeedback":true}}]} Scene: PUT_COMPONENT e=0x201 c=1062 t=1 data={"pointerEvents":[{"eventType":0,"eventInfo":{"button":2,"hoverText":"Secondary Up","maxDistance":5,"showFeedback":true}}]} Scene: PUT_COMPONENT e=0x202 c=1062 t=1 data={"pointerEvents":[{"eventType":2,"eventInfo":{"button":3,"hoverText":"Infinity Hover","maxDistance":10000000,"showFeedback":true}}]} - Scene: PUT_COMPONENT e=0x200 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} - Scene: PUT_COMPONENT e=0x201 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} - Scene: PUT_COMPONENT e=0x202 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} Scene: PUT_COMPONENT e=0x200 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}} Scene: PUT_COMPONENT e=0x201 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}} Scene: PUT_COMPONENT e=0x202 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}} - OPCODES ~= 22k - MALLOC_COUNT = 39 - ALIVE_OBJS_DELTA ~= 0.02k + Scene: PUT_COMPONENT e=0x200 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} + Scene: PUT_COMPONENT e=0x201 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} + Scene: PUT_COMPONENT e=0x202 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} + OPCODES ~= 23k + MALLOC_COUNT = 37 + ALIVE_OBJS_DELTA ~= 0.01k CALL onUpdate(0.1) OPCODES ~= 1k MALLOC_COUNT = 0 @@ -43,4 +43,4 @@ CALL onUpdate(0.1) OPCODES ~= 1k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 769.90k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 869.52k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/schema-components.ts.crdt b/test/snapshots/production-bundles/schema-components.ts.crdt index 30a05c104..621522880 100644 --- a/test/snapshots/production-bundles/schema-components.ts.crdt +++ b/test/snapshots/production-bundles/schema-components.ts.crdt @@ -1,4 +1,4 @@ -SCENE_COMPILED_JS_SIZE_PROD=176.6k bytes +SCENE_COMPILED_JS_SIZE_PROD=194k bytes (start empty vm 0.21.0-3680274614.commit-1808aa1) OPCODES ~= 0k MALLOC_COUNT = 1005 @@ -8,16 +8,16 @@ EVAL test/snapshots/production-bundles/schema-components.js REQUIRE: long REQUIRE: ~system/EngineApi REQUIRE: ~system/EngineApi - OPCODES ~= 51k - MALLOC_COUNT = 9685 - ALIVE_OBJS_DELTA ~= 2.08k + OPCODES ~= 59k + MALLOC_COUNT = 11976 + ALIVE_OBJS_DELTA ~= 2.65k CALL onStart() OPCODES ~= 0k MALLOC_COUNT = 6 ALIVE_OBJS_DELTA ~= 0.00k CALL onUpdate(0) - OPCODES ~= 1k - MALLOC_COUNT = 25 + OPCODES ~= 2k + MALLOC_COUNT = 23 ALIVE_OBJS_DELTA ~= 0.01k CALL onUpdate(0.1) OPCODES ~= 1k @@ -31,4 +31,4 @@ CALL onUpdate(0.1) OPCODES ~= 1k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 747.50k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 854.21k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/ui.ts.crdt b/test/snapshots/production-bundles/ui.ts.crdt index a92399b19..eb282069d 100644 --- a/test/snapshots/production-bundles/ui.ts.crdt +++ b/test/snapshots/production-bundles/ui.ts.crdt @@ -1,4 +1,4 @@ -SCENE_COMPILED_JS_SIZE_PROD=333k bytes +SCENE_COMPILED_JS_SIZE_PROD=351k bytes (start empty vm 0.21.0-3680274614.commit-1808aa1) OPCODES ~= 0k MALLOC_COUNT = 1005 @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/ui.js REQUIRE: long REQUIRE: ~system/EngineApi REQUIRE: ~system/EngineApi - OPCODES ~= 58k - MALLOC_COUNT = 17323 - ALIVE_OBJS_DELTA ~= 3.35k + OPCODES ~= 65k + MALLOC_COUNT = 19447 + ALIVE_OBJS_DELTA ~= 3.87k CALL onStart() OPCODES ~= 0k MALLOC_COUNT = 6 @@ -20,23 +20,23 @@ CALL onUpdate(0) Scene: PUT_COMPONENT e=0x200 c=1062 t=1 data={"pointerEvents":[{"eventType":1,"eventInfo":{"button":1,"hoverText":"Press E to spawn","maxDistance":100,"showFeedback":true}}]} Scene: PUT_COMPONENT e=0x204 c=1062 t=1 data={"pointerEvents":[{"eventType":1,"eventInfo":{"button":0,"showFeedback":true}}]} Scene: PUT_COMPONENT e=0x20a c=1062 t=1 data={"pointerEvents":[{"eventType":1,"eventInfo":{"button":0,"showFeedback":true}},{"eventType":0,"eventInfo":{"button":0,"showFeedback":true}}]} - Scene: PUT_COMPONENT e=0x200 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} Scene: PUT_COMPONENT e=0x200 c=1019 t=1 data={"mesh":{"$case":"box","box":{}}} Scene: PUT_COMPONENT e=0x201 c=1050 t=1 data={"parent":516,"rightOf":0,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":1,"width":200,"heightUnit":1,"height":36,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} Scene: PUT_COMPONENT e=0x202 c=1050 t=1 data={"parent":516,"rightOf":513,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":1,"width":200,"heightUnit":1,"height":36,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} - Scene: PUT_COMPONENT e=0x203 c=1050 t=1 data={"parent":516,"rightOf":514,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":0,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} + Scene: PUT_COMPONENT e=0x203 c=1050 t=1 data={"parent":516,"rightOf":514,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":3,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} Scene: PUT_COMPONENT e=0x204 c=1050 t=1 data={"parent":523,"rightOf":0,"alignItems":2,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":1,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":2,"width":100,"heightUnit":2,"height":20,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} - Scene: PUT_COMPONENT e=0x205 c=1050 t=1 data={"parent":518,"rightOf":0,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":0,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} + Scene: PUT_COMPONENT e=0x205 c=1050 t=1 data={"parent":518,"rightOf":0,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":3,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} Scene: PUT_COMPONENT e=0x206 c=1050 t=1 data={"parent":523,"rightOf":516,"alignItems":2,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":1,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":2,"width":100,"heightUnit":2,"height":20,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} - Scene: PUT_COMPONENT e=0x207 c=1050 t=1 data={"parent":520,"rightOf":0,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":0,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} + Scene: PUT_COMPONENT e=0x207 c=1050 t=1 data={"parent":520,"rightOf":0,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":3,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} Scene: PUT_COMPONENT e=0x208 c=1050 t=1 data={"parent":523,"rightOf":518,"alignItems":2,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":1,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":2,"width":100,"heightUnit":1,"height":100,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} - Scene: PUT_COMPONENT e=0x209 c=1050 t=1 data={"parent":523,"rightOf":520,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":0,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} - Scene: PUT_COMPONENT e=0x20a c=1050 t=1 data={"parent":523,"rightOf":521,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":0,"width":0,"heightUnit":1,"height":36,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} + Scene: PUT_COMPONENT e=0x209 c=1050 t=1 data={"parent":523,"rightOf":520,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":3,"width":0,"heightUnit":0,"height":0,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} + Scene: PUT_COMPONENT e=0x20a c=1050 t=1 data={"parent":523,"rightOf":521,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":3,"width":0,"heightUnit":1,"height":36,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":0,"marginLeft":0,"marginTopUnit":0,"marginTop":0,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} Scene: PUT_COMPONENT e=0x20b c=1050 t=1 data={"parent":0,"rightOf":0,"positionType":0,"alignSelf":0,"flexDirection":0,"justifyContent":0,"overflow":0,"display":0,"flexBasisUnit":0,"flexBasis":0,"flexGrow":0,"widthUnit":1,"width":700,"heightUnit":1,"height":400,"minWidthUnit":0,"minWidth":0,"minHeightUnit":0,"minHeight":0,"maxWidthUnit":0,"maxWidth":0,"maxHeightUnit":0,"maxHeight":0,"positionLeftUnit":0,"positionLeft":0,"positionTopUnit":0,"positionTop":0,"positionRightUnit":0,"positionRight":0,"positionBottomUnit":0,"positionBottom":0,"marginLeftUnit":1,"marginLeft":500,"marginTopUnit":1,"marginTop":35,"marginRightUnit":0,"marginRight":0,"marginBottomUnit":0,"marginBottom":0,"paddingLeftUnit":0,"paddingLeft":0,"paddingTopUnit":0,"paddingTop":0,"paddingRightUnit":0,"paddingRight":0,"paddingBottomUnit":0,"paddingBottom":0,"pointerFilter":0} - Scene: PUT_COMPONENT e=0x203 c=1052 t=1 data={"value":"SDK 7","fontSize":80} - Scene: PUT_COMPONENT e=0x205 c=1052 t=1 data={"value":"Counter:","fontSize":60} - Scene: PUT_COMPONENT e=0x207 c=1052 t=1 data={"value":"Player:","fontSize":40} - Scene: PUT_COMPONENT e=0x20a c=1052 t=1 data={"value":"some value","color":{"r":1,"g":1,"b":1,"a":1}} + Scene: PUT_COMPONENT e=0x200 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} + Scene: PUT_COMPONENT e=0x203 c=1052 t=1 data={"value":"SDK 7","fontSize":80,"textWrap":0} + Scene: PUT_COMPONENT e=0x205 c=1052 t=1 data={"value":"Counter:","fontSize":60,"textWrap":0} + Scene: PUT_COMPONENT e=0x207 c=1052 t=1 data={"value":"Player:","fontSize":40,"textWrap":0} + Scene: PUT_COMPONENT e=0x20a c=1052 t=1 data={"value":"some value","color":{"r":1,"g":1,"b":1,"a":1},"textWrap":0} Scene: PUT_COMPONENT e=0x201 c=1053 t=1 data={"color":{"r":0,"g":0,"b":1,"a":1},"textureMode":1,"uvs":[]} Scene: PUT_COMPONENT e=0x202 c=1053 t=1 data={"color":{"r":1,"g":0,"b":0,"a":1},"textureMode":1,"uvs":[]} Scene: PUT_COMPONENT e=0x203 c=1053 t=1 data={"color":{"r":0.9843137264251709,"g":0.9411764740943909,"b":0.9411764740943909,"a":1},"textureMode":1,"uvs":[]} @@ -47,22 +47,22 @@ CALL onUpdate(0) Scene: PUT_COMPONENT e=0x202 c=1093 t=1 data={"placeholder":"SARASA","disabled":false} Scene: PUT_COMPONENT e=0x209 c=1093 t=1 data={"placeholder":"","disabled":false} Scene: PUT_COMPONENT e=0x201 c=1094 t=1 data={"acceptEmpty":false,"options":["BOEDO","CASLA"],"selectedIndex":0,"disabled":false,"color":{"r":1,"g":0,"b":0,"a":1}} - OPCODES ~= 127k - MALLOC_COUNT = 680 + OPCODES ~= 131k + MALLOC_COUNT = 678 ALIVE_OBJS_DELTA ~= 0.24k CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x200 c=1 t=2 data={"position":{"x":8,"y":1,"z":8},"rotation":{"x":0,"y":0.008726535364985466,"z":0,"w":0.9999619126319885},"scale":{"x":1,"y":1,"z":1},"parent":0} - OPCODES ~= 64k + OPCODES ~= 65k MALLOC_COUNT = 250 ALIVE_OBJS_DELTA ~= 0.12k CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x200 c=1 t=3 data={"position":{"x":8,"y":1,"z":8},"rotation":{"x":0,"y":0.017452405765652657,"z":0,"w":0.9998477101325989},"scale":{"x":1,"y":1,"z":1},"parent":0} - OPCODES ~= 62k + OPCODES ~= 63k MALLOC_COUNT = 34 ALIVE_OBJS_DELTA ~= 0.02k CALL onUpdate(0.1) Scene: PUT_COMPONENT e=0x200 c=1 t=4 data={"position":{"x":8,"y":1,"z":8},"rotation":{"x":0,"y":0.026176948100328445,"z":0,"w":0.9996573328971863},"scale":{"x":1,"y":1,"z":1},"parent":0} - OPCODES ~= 62k + OPCODES ~= 63k MALLOC_COUNT = 0 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 1577.40k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 1686.56k bytes \ No newline at end of file diff --git a/test/snapshots/production-bundles/with-main-function.ts.crdt b/test/snapshots/production-bundles/with-main-function.ts.crdt index ace5cd54d..3d6eef012 100644 --- a/test/snapshots/production-bundles/with-main-function.ts.crdt +++ b/test/snapshots/production-bundles/with-main-function.ts.crdt @@ -1,4 +1,4 @@ -SCENE_COMPILED_JS_SIZE_PROD=177.2k bytes +SCENE_COMPILED_JS_SIZE_PROD=194.6k bytes (start empty vm 0.21.0-3680274614.commit-1808aa1) OPCODES ~= 0k MALLOC_COUNT = 1005 @@ -8,32 +8,33 @@ EVAL test/snapshots/production-bundles/with-main-function.js REQUIRE: long REQUIRE: ~system/EngineApi REQUIRE: ~system/EngineApi - OPCODES ~= 48k - MALLOC_COUNT = 9815 - ALIVE_OBJS_DELTA ~= 2.11k + OPCODES ~= 55k + MALLOC_COUNT = 12005 + ALIVE_OBJS_DELTA ~= 2.65k 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=1041 t=1 data={"src":"test.glb"} Scene: PUT_COMPONENT e=0x200 c=1018 t=1 data={"mesh":{"$case":"box","box":{"uvs":[]}}} - OPCODES ~= 4k + OPCODES ~= 6k MALLOC_COUNT = 71 ALIVE_OBJS_DELTA ~= 0.03k CALL onUpdate(0.1) - Scene: PUT_COMPONENT e=0x201 c=1041 t=1 data={"src":"test.glb"} + Scene: PUT_COMPONENT e=0x202 c=1041 t=1 data={"src":"test.glb"} OPCODES ~= 3k - MALLOC_COUNT = 6 + MALLOC_COUNT = 5 ALIVE_OBJS_DELTA ~= 0.00k CALL onUpdate(0.1) - Scene: PUT_COMPONENT e=0x202 c=1041 t=1 data={"src":"test.glb"} + Scene: PUT_COMPONENT e=0x203 c=1041 t=1 data={"src":"test.glb"} OPCODES ~= 3k MALLOC_COUNT = 5 ALIVE_OBJS_DELTA ~= 0.00k CALL onUpdate(0.1) - Scene: PUT_COMPONENT e=0x203 c=1041 t=1 data={"src":"test.glb"} + Scene: PUT_COMPONENT e=0x204 c=1041 t=1 data={"src":"test.glb"} OPCODES ~= 3k MALLOC_COUNT = 5 ALIVE_OBJS_DELTA ~= 0.00k - MEMORY_USAGE_COUNT ~= 762.97k bytes \ No newline at end of file + MEMORY_USAGE_COUNT ~= 867.33k bytes \ No newline at end of file