From ff1731eded71f09bb3db970b8b1defb87abde8c0 Mon Sep 17 00:00:00 2001 From: G17hao <670788361@qq.com> Date: Tue, 20 Jan 2015 19:27:01 +0800 Subject: [PATCH] Update CCGroupCommand.h add a vector container for save unused id. traversal unordered_map is too slow, use vector to replace it --- cocos/renderer/CCGroupCommand.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/renderer/CCGroupCommand.h b/cocos/renderer/CCGroupCommand.h index 96fa8f70da..c261234ed8 100644 --- a/cocos/renderer/CCGroupCommand.h +++ b/cocos/renderer/CCGroupCommand.h @@ -26,6 +26,7 @@ #ifndef _CC_GROUPCOMMAND_H_ #define _CC_GROUPCOMMAND_H_ +#include #include #include "base/CCRef.h" @@ -45,6 +46,7 @@ protected: ~GroupCommandManager(); bool init(); std::unordered_map _groupMapping; + std::vector _unusedIDs; }; class CC_DLL GroupCommand : public RenderCommand