diff options
author | lawnjelly <lawnjelly@gmail.com> | 2022-08-02 16:27:57 +0100 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2022-08-02 16:27:57 +0100 |
commit | bb273bc97208db7d8a793956e6caab1e534c997f (patch) | |
tree | f3ffcbfa40e1e82c7cb0ece6c9ac7595f529ec7e /core/variant/variant.h | |
parent | 0f9e84feab42473b19699372961a81ad2f801c63 (diff) | |
download | redot-engine-bb273bc97208db7d8a793956e6caab1e534c997f.tar.gz |
Variant large bucket memory pool - for Projection
Add a larger bucket size pool for the new Projection Matrix.
Diffstat (limited to 'core/variant/variant.h')
-rw-r--r-- | core/variant/variant.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h index ea75dce4ce..212f94a9a8 100644 --- a/core/variant/variant.h +++ b/core/variant/variant.h @@ -142,14 +142,20 @@ private: Transform2D _transform2d; ::AABB _aabb; }; + union BucketMedium { + BucketMedium() {} + ~BucketMedium() {} + Basis _basis; + Transform3D _transform3d; + }; union BucketLarge { BucketLarge() {} ~BucketLarge() {} - Basis _basis; - Transform3D _transform3d; + Projection _projection; }; static PagedAllocator<BucketSmall, true> _bucket_small; + static PagedAllocator<BucketMedium, true> _bucket_medium; static PagedAllocator<BucketLarge, true> _bucket_large; }; |