wave4-ijobparallelfor-array-transform

Distribute independent NativeArray index transforms across parallel threads with IJobParallelFor.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill wave4-ijobparallelfor-array-transform
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wave4-ijobparallelfor-array-transform
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-dots/wave4-ijobparallelfor-array-transform
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill wave4-ijobparallelfor-array-transform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It speeds up large, non-entity NativeArray transformations by running independent per-index work in parallel instead of processing everything on a single thread.

Core Features & Use Cases

  • Parallel index transforms for raw NativeArrays: Use IJobParallelFor to distribute index ranges across worker threads.
  • Burst-friendly math loops: Structure loops so Burst can optimize simple arithmetic and SIMD-friendly operations.
  • Safety and performance guardrails: Avoid cross-index writes and choose a sensible batchSize to reduce overhead.

Quick Start

Implement an IJobParallelFor that reads and writes only Values[index], then schedule it with a starting batchSize of 64 and profile to confirm speedup on large (>~1000) arrays.

Frequently Asked Questions about wave4-ijobparallelfor-array-transform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parallelize NativeArray transforms in Unity without using ECS entities?▼

To parallelize NativeArray transforms without ECS, use IJobParallelFor to distribute independent per-index work across worker threads. This approach accelerates CPU-heavy math-only operations on large arrays while avoiding entity component data patterns.

What batchSize should I use for IJobParallelFor to optimize NativeArray performance?▼

For IJobParallelFor NativeArray performance, start with a batchSize of 64 and profile to confirm speedup. A sensible batchSize reduces scheduling overhead, and measurable gains typically appear on large arrays exceeding 1000 elements.

Can I use Burst compilation with IJobParallelFor for math-only array operations?▼

Yes, Burst works with IJobParallelFor by optimizing simple arithmetic and SIMD-friendly operations. Structure your loops to be Burst-compatible, ensuring the job code writes only to the owning index to maintain safety and maximize throughput.

Why is my IJobParallelFor job not speeding up NativeArray processing?▼

Your IJobParallelFor job may not speed up NativeArray processing if cross-index writes are present or the array is too small. Avoid cross-index writes, ensure work is independent per index, and verify your array is large enough for parallel gains.

When should I avoid using IJobParallelFor for NativeArray transformations in Unity DOTS?▼

You should avoid IJobParallelFor for NativeArray transformations if your operations have cross-index dependencies or involve ECS entity component data patterns. This approach fits only independent per-index math-only work on large non-entity arrays.