wave4-world-update-allocator-per-frame-native
CommunityAuto-manage per-frame Native allocations.
Software Engineering#memory-management#jobs#unity-dots#nativearray#native-container#world-update-allocator
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the hassle and risk of manually disposing per-frame Unity DOTS NativeArrays and NativeContainers, which otherwise lead to memory leaks or safety errors.
Core Features & Use Cases
- Per-frame lifetime management: Uses WorldUpdateAllocator (RewindableAllocator) to auto-rewind allocations at the end of each world update.
- No manual Dispose(): Keeps per-frame temporary job data allocation-safe without boilerplate disposal code.
- Correct allocation strategy: Guides you on when to use rewindable per-frame memory versus Allocator.Persistent for cross-frame storage.
- Use case: Allocate temporary maps/arrays inside an update to build job inputs for one frame, then safely let the allocator rewind without manual cleanup.
Quick Start
Use the WorldUpdateAllocator via state.WorldUpdateAllocator when creating NativeArray or NativeContainers for data that only needs to live for the current frame.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wave4-world-update-allocator-per-frame-native Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave4-world-update-allocator-per-frame-native Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.