(World) Optimized CreateEntities method
Former-commit-id: 99b89aad500ebaa18fb733ad04a94010728e8370
This commit is contained in:
@@ -12,6 +12,8 @@ namespace Ndk
|
|||||||
inline World::EntityList World::CreateEntities(unsigned int count)
|
inline World::EntityList World::CreateEntities(unsigned int count)
|
||||||
{
|
{
|
||||||
EntityList list;
|
EntityList list;
|
||||||
|
list.reserve(count);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < count; ++i)
|
for (unsigned int i = 0; i < count; ++i)
|
||||||
list.push_back(CreateEntity());
|
list.push_back(CreateEntity());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user