Version: Unity 7.0 Alpha (7000.0)
Language : English
Parallel readers and writers
Introduction to allocators

Use allocators to control unmanaged memory

The Unity.Collections APIs allocate collections from unmanaged memory, which means they’re not managed by the garbage collector. You’re responsible for deallocating any unmanaged memory that you don’t need. Failing to deallocate large or multiple allocations can waste a lot of memory, which can slow down or crash your application.

Topic Description
Introduction to allocators Understand how to use an allocator to manage unmanaged memory.
Aliasing allocators Create aliases, which share memory allocations with another collection.
Rewindable allocator Understand rewindable allocators, which can pre-allocate memory.
Define a custom allocator Understand custom allocators, which you can create for specific memory allocation needs.
Create and use a custom allocator Create and use a custom allocator.
Performance reference Understand allocator and container comparative performance with benchmark data.

Additional resources

Parallel readers and writers
Introduction to allocators
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961