From dc6ab7da08e1eb7a0d9219ad47216f992381590b Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Tue, 18 Apr 2017 20:06:02 +0800 Subject: [PATCH] Increased SKIN_SHARE_SOFT_LIMIT to 301, so scratch-vm will not throw a EventEmitter memory leak warning. Reason: the max number of clones is 300, plus 1 for itself. Then the shared skin will exceed it's limit. Changing the number from 300 to 301 fixes this issue. --- src/RenderConstants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RenderConstants.js b/src/RenderConstants.js index 3bbd7e0..4dc7ac4 100644 --- a/src/RenderConstants.js +++ b/src/RenderConstants.js @@ -16,7 +16,7 @@ module.exports = { * Going above this may cause middleware warnings or a performance penalty but should otherwise behave correctly. * @const {int} */ - SKIN_SHARE_SOFT_LIMIT: 300, + SKIN_SHARE_SOFT_LIMIT: 301, /** * @enum {string}