Skip to content

Commit d4986ea

Browse files
committed
PoolGrownByHalfStrategy -> PoolGrownAddStrategy
1 parent 9db10d5 commit d4986ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Client/game_sa/CDynamicPool.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class CDynamicPoolPart
5151
const std::size_t m_size;
5252
};
5353

54-
template <std::size_t InitialSize>
55-
struct PoolGrownByHalfStrategy
54+
template <std::size_t InitialSize, std::size_t AddSize>
55+
struct PoolGrownAddStrategy
5656
{
5757
static constexpr std::size_t GetInitialSize() { return InitialSize; }
58-
static constexpr std::size_t GetNextSize(std::size_t index) { return InitialSize / 2; }
58+
static constexpr std::size_t GetNextSize(std::size_t index) { return AddSize; }
5959
};
6060

6161
template <typename PoolObjT, typename GrowStrategy>

Client/game_sa/CPtrNodeSingleLinkPoolSA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CPtrNodeSingleLinkPoolSA final : public CPtrNodeSingleLinkPool
2020
{
2121
public:
2222
using pool_item_t = CPtrNodeSingleLink<void*>;
23-
using pool_t = CDynamicPool<pool_item_t, PoolGrownByHalfStrategy<MAX_POINTER_SINGLE_LINKS>>;
23+
using pool_t = CDynamicPool<pool_item_t, PoolGrownAddStrategy<MAX_POINTER_SINGLE_LINKS, MAX_POINTER_SINGLE_LINKS / 2>>;
2424

2525
CPtrNodeSingleLinkPoolSA();
2626

0 commit comments

Comments
 (0)