Optimize CPU particles drawing to support async

This commit is contained in:
Wojtek Figat
2025-08-05 09:03:47 +02:00
parent abe496fe12
commit 1a88fefd76
8 changed files with 59 additions and 41 deletions

View File

@@ -125,6 +125,13 @@ public:
// Frees all memory allocations within allocator.
void Free();
// Allocates a chunk of unitialized memory.
template<class T>
inline T* Allocate(uint64 count)
{
return (T*)Allocate(count * sizeof(T), alignof(T));
}
// Creates a new object within the arena allocator.
template<class T, class... Args>
inline T* New(Args&&...args)