Update CCGroupCommand.h

add a vector container for save unused id.
traversal unordered_map is too slow, use vector to replace it
This commit is contained in:
G17hao 2015-01-20 19:27:01 +08:00
parent e849243894
commit ff1731eded
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#ifndef _CC_GROUPCOMMAND_H_
#define _CC_GROUPCOMMAND_H_
#include <vector>
#include <unordered_map>
#include "base/CCRef.h"
@ -45,6 +46,7 @@ protected:
~GroupCommandManager();
bool init();
std::unordered_map<int, bool> _groupMapping;
std::vector<int> _unusedIDs;
};
class CC_DLL GroupCommand : public RenderCommand