issues with entity allocation

This commit is contained in:
benkyd
2022-06-08 20:00:52 +00:00
parent b90898fca6
commit 01c31f46f4
6 changed files with 73 additions and 19 deletions

View File

@@ -91,6 +91,31 @@ public:
ExampleGame()
: App( { "Example" }, { "Game with AEON!" } )
{
EC::EntityRegistry registry;
EC::Entity entity1 = registry.Create();
std::cout << entity1 << std::endl;
std::vector<EC::Entity> entities;
for (int i = 0; i < 100000; i++)
{
entities.push_back(registry.Create());
}
std::cout << entities[entities.size()] << std::endl;
for (int i = 0; i < 100000; i++)
{
registry.Destroy(entities[i]);
}
entity1 = registry.Create();
std::cout << entity1 << std::endl;
Level* level = new Level;
PushLayer( (Core::GameLayer*)level );
DebugLayer* debug = new DebugLayer;