- store the wall render nodes as pointers, not as objects.
This is mainly for future-proofing because storing these as objects in an array not only has a negative impact when using multithreading due to longer blocking time for the threads but also makes it hard to cache this data for reuse.
This commit is contained in:
parent
e15baa21cb
commit
e8eb8dd596
5 changed files with 60 additions and 48 deletions
|
|
@ -560,6 +560,10 @@ public:
|
|||
{
|
||||
return Array[index];
|
||||
}
|
||||
T &At(size_t index) const
|
||||
{
|
||||
return Array[index];
|
||||
}
|
||||
unsigned int Size() const
|
||||
{
|
||||
return Count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue