@dcl/ecs 7.21.1-23252789519.commit-9f806e1 → 7.21.1-23305235032.commit-03201a6
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.
|
@@ -218,6 +218,12 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
218
218
|
const buffer = new ReadWriteByteBuffer();
|
|
219
219
|
// Then we send all the new crdtMessages that the transport needs to process
|
|
220
220
|
for (const message of crdtMessages) {
|
|
221
|
+
// Avoid echo messages
|
|
222
|
+
if (message.transportId === transportIndex)
|
|
223
|
+
continue;
|
|
224
|
+
// Redundant message for the transport
|
|
225
|
+
if (!transport.filter(message))
|
|
226
|
+
continue;
|
|
221
227
|
// Check if adding this message would exceed the size limit
|
|
222
228
|
const currentBufferSize = transportBuffer.toBinary().byteLength;
|
|
223
229
|
const messageSize = message.messageBuffer.byteLength;
|
|
@@ -234,12 +240,6 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
234
240
|
continue;
|
|
235
241
|
}
|
|
236
242
|
}
|
|
237
|
-
// Avoid echo messages
|
|
238
|
-
if (message.transportId === transportIndex)
|
|
239
|
-
continue;
|
|
240
|
-
// Redundant message for the transport
|
|
241
|
-
if (!transport.filter(message))
|
|
242
|
-
continue;
|
|
243
243
|
const { entityId } = findNetworkId(message);
|
|
244
244
|
const transformNeedsFix = 'componentId' in message &&
|
|
245
245
|
message.componentId === Transform.componentId &&
|
|
@@ -244,6 +244,12 @@ function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
244
244
|
const buffer = new ByteBuffer_1.ReadWriteByteBuffer();
|
|
245
245
|
// Then we send all the new crdtMessages that the transport needs to process
|
|
246
246
|
for (const message of crdtMessages) {
|
|
247
|
+
// Avoid echo messages
|
|
248
|
+
if (message.transportId === transportIndex)
|
|
249
|
+
continue;
|
|
250
|
+
// Redundant message for the transport
|
|
251
|
+
if (!transport.filter(message))
|
|
252
|
+
continue;
|
|
247
253
|
// Check if adding this message would exceed the size limit
|
|
248
254
|
const currentBufferSize = transportBuffer.toBinary().byteLength;
|
|
249
255
|
const messageSize = message.messageBuffer.byteLength;
|
|
@@ -260,12 +266,6 @@ function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
260
266
|
continue;
|
|
261
267
|
}
|
|
262
268
|
}
|
|
263
|
-
// Avoid echo messages
|
|
264
|
-
if (message.transportId === transportIndex)
|
|
265
|
-
continue;
|
|
266
|
-
// Redundant message for the transport
|
|
267
|
-
if (!transport.filter(message))
|
|
268
|
-
continue;
|
|
269
269
|
const { entityId } = findNetworkId(message);
|
|
270
270
|
const transformNeedsFix = 'componentId' in message &&
|
|
271
271
|
message.componentId === Transform.componentId &&
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.21.1-
|
|
4
|
+
"version": "7.21.1-23305235032.commit-03201a6",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"typings": "./dist/index.d.ts",
|
|
37
|
-
"commit": "
|
|
37
|
+
"commit": "03201a6a94a85748e52efe7362546fa6932c3460"
|
|
38
38
|
}
|