From b31712a2e642d12a5aa580d8fd5f5a8e1a209c06 Mon Sep 17 00:00:00 2001 From: minggo Date: Fri, 13 Apr 2018 14:25:30 +0800 Subject: [PATCH] use native object to improve performance --- jsb/vertex-format-jsb.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jsb/vertex-format-jsb.js b/jsb/vertex-format-jsb.js index d61910f4e5..62448b01ea 100644 --- a/jsb/vertex-format-jsb.js +++ b/jsb/vertex-format-jsb.js @@ -72,6 +72,8 @@ class VertexFormat { let el = this._elements[i]; el.stride = this._bytes; } + + this._nativeObj = new gfx.VertexFormatNative(this._elements); } /**