Use std::list in ecs::query_cache to prevent reallocation problems
This commit is contained in:
parent
c6f9fbd244
commit
d9935c7476
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <psemek/util/uuid.hpp>
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
namespace psemek::ecs::detail
|
||||
{
|
||||
|
|
@ -21,7 +22,7 @@ namespace psemek::ecs::detail
|
|||
{
|
||||
std::vector<util::uuid> with_uuids;
|
||||
std::vector<util::uuid> without_uuids;
|
||||
std::vector<query_cache_entry> entries;
|
||||
std::list<query_cache_entry> entries;
|
||||
|
||||
util::function<table_callback(std::vector<std::uint32_t> const &)> constructor_factory;
|
||||
util::function<table_callback(std::vector<std::uint32_t> const &)> destructor_factory;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue