---
title: ネイティブメモリアロケーターリファレンス
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/ja-jp/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-reference
latest_url: https://docs.unity.com/ja-jp/engine/7000.0/manual/analysis/performance-memory/native-memory/allocator-reference.md
generated_at: 2026-11-16T06:27:14.789Z
locale: ja-jp
---

# ネイティブメモリアロケーターリファレンス

> ネイティブブアロケーター設定のリファレンス

ネイティブメモリーの割り当て方法は、コマンドライン引数を使用するか、Unity エディターの設定 (**編集> プロジェクト設定> メモリー設定**) を使用してコントロールできます。ネイティブメモリアロケーターのカスタマイズ方法については、[ネイティブメモリアロケーター](/engine/6000.0/manual/analysis/performance-memory/native-memory/memory-allocator-customization.md)のカスタマイズ を参照してください。


**Project Settings > Memory Settings, showing a selection of Player memory settings:**
![](/api/media?file=/engine/6000.0/media/images/memory-native-settings.png)

以下の表に、各アロケーター設定、[コマンドライン引数](/engine/6000.0/manual/unity-editor/command-line-arguments.md)、デフォルト値に関する情報を示します。

## 主なアロケーター##main-allocators

これらのアロケーターは、Unity がほとんどの割り当てに使用するものです。

### メインアロケーター##main-allocator

Unity がほとんどの割り当てに使用するアロケーター。以下の設定があります。

| **設定**             | **説明**                   | **コマンドライン引数**                             | **初期値** |
| ------------------ | ------------------------ | ----------------------------------------- | ------- |
| **メインスレッドブロックサイズ** | 専用メインスレッドアロケーターのブロックサイズ。 | `memorysetup-main-allocator-block-size`   | バイト     |
| **共有スレッドブロックサイズ**  | 共有スレッドアロケーターのブロックサイズ。    | `memorysetup-thread-allocator-block-size` | バイト     |

### Gfx アロケーター##gfx-allocator

Unity が Gfx システムに関連する CPU 割り当てに使用するアロケーター。以下の設定があります。

| **設定**             | **説明**                        | **コマンドライン引数**                                 | **初期値** |
| ------------------ | ----------------------------- | --------------------------------------------- | ------- |
| **メインスレッドブロックサイズ** | 専用メインスレッド Gfx アロケーターのブロックサイズ。 | `memorysetup-gfx-main-allocator-block-size`   | バイト     |
| **共有スレッドブロックサイズ**  | 共有スレッド Gfx アロケーターのブロックサイズ。    | `memorysetup-gfx-thread-allocator-block-size` | バイト     |

### その他のアロケーター##other-allocators

タイプツリーとファイルキャッシュに使用される割り当て以下の設定があります。

| **設定**               | **説明**                                                       | **コマンドライン引数**                               | **初期値** |
| -------------------- | ------------------------------------------------------------ | ------------------------------------------- | ------- |
| **ファイルキャッシュブロックサイズ** | ファイルキャッシュには、断片化を回避するための独自のアロケーターがあります。これはそのブロックサイズです。        | `memorysetup-cache-allocator-block-size`    | バイト     |
| **タイプ樹木ブロックサイズ**     | タイプ ツリーには独自のアロケーターがあり、多くの小さな割り当てによる断片化を回避します。これはそのブロックサイズです。 | `memorysetup-typetree-allocator-block-size` | バイト     |

### 共有バケットアロケーター##shared-bucket-allocator

メインアロケーター間で共有されるバケットアロケーター。以下の設定があります。

| **設定**                     | **説明**                 | **コマンドライン引数**                               | **初期値**                                       |
| -------------------------- | ---------------------- | ------------------------------------------- | --------------------------------------------- |
| **バケットアロケーター粒度**           | 共有アロケーターのバケットのステップサイズ。 | `memorysetup-bucket-allocator-granularity`  | バイト                                           |
| **バケットアロケーター BucketCount** | バケット サイズの数。            | `memorysetup-bucket-allocator-bucket-count` | `8`                                           |
| **バケットアロケーターブロックサイズ**      | バケットに使用されるメモリブロックのサイズ。 | `memorysetup-bucket-allocator-block-size`   | Editor： `8388608` bytesプレイヤー： `4194304` bytes |
| **バケットアロケーターブロック数**        | 割り当てられるブロックの最大数        | `memorysetup-bucket-allocator-block-count`  | エディター: `8`"Player",                           |

## スレッドごとの高速一時アロケーター##fast-per-thread-temporary-allocators

ごく短期間の割り当てを処理する[スレッドローカルストレージ (TLS) アロケーター](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocators.md#tls)。

| **アロケーター**              | **説明**                         | **コマンドライン引数**                                       | **デフォルト値**(バイト単位)          |
| ----------------------- | ------------------------------ | --------------------------------------------------- | -------------------------- |
| **メインスレッドブロックサイズ**      | メインスレッドスタックの初期サイズ。             | `memorysetup-temp-allocator-size-main`              | エディター: `16777216`"Player", |
| **ジョブ ワーカーのブロック サイズ**   | Unity ジョブ システム内の各ジョブ ワーカーのサイズ。 | `memorysetup-temp-allocator-size-job-worker`        | `E262144`                  |
| **背景ジョブ ワーカー ブロック サイズ** | 各背景ワーカーのサイズ。                   | `memorysetup-temp-allocator-size-background-worker` | `32768`                    |
| **プリロードブロックサイズ**        | プリロード マネージャのスタック サイズ。          | `memorysetup-temp-allocator-size-preload-manager`   | エディター: `33554432`"Player", |
| オーディオ ワーカー ブロック サイズ     | 各オーディオワーカースレッドのスタックサイズ。        | `memorysetup-temp-allocator-size-audio-worker`      | `65536`                    |
| **クラウド ワーカーのブロック サイズ**  | クラウドワーカースレッドのスタックサイズ           | `memorysetup-temp-allocator-size-cloud-worker`      | `32768`                    |
| **Gfx スレッドブロックサイズ**     | メインのレンダリングするスレッドのスタックサイズ       | `memorysetup-temp-allocator-size-gfx`               | `262144`                   |
| **GI Baking Blocksize** | 各 GI ワーカースレッドのスタックサイズ。         | `memorysetup-temp-allocator-size-gi-baking-worker`  | `262144`                   |
| **ナビメッシュワーカーブロックサイズ**   | ナビゲーションメッシュワーカースレッドのスタックサイズ    | `memorysetup-temp-allocator-size-nav-mesh-worker`   | `65536`                    |

## 高速スレッド共有一時アロケーター##fast-thread-shared-temporary-allocators

スレッド間で共有される短期割り当て用の[高速リニアアロケーター](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocators.md)。

| **アロケーター**                            | **説明**                                                 | **コマンドライン引数**                                              | **デフォルト値**(バイト単位) |
| ------------------------------------- | ------------------------------------------------------ | ---------------------------------------------------------- | ----------------- |
| **ジョブアロケーターブロックサイズ**                  | Unity が主にジョブワーカースレッドに使用する端数処理リニアスレッドアロケーター。            | `memorysetup-job-temp-allocator-block-size`                | `2097152`         |
| **背景ジョブ アロケーター ブロック サイズ**             | より長い期間の割り当てを可能にする、背景ワーカー用のリニアアロケーター。                   | `memorysetup-job-temp-allocator-block-size-background`     | `21048576`        |
| **低メモリ プラットフォームのジョブ アロケーター ブロック サイズ** | メモリが 2 GB 未満のプラットフォームでは、ジョブワーカーと背景ジョブの両方にこのサイズが使用されます。 | `memorysetup-job-temp-allocator-reduction-small-platforms` | `262144`          |

## プロファイラーアロケーター##profiler-allocators

Unity が[プロファイラー](/engine/6000.0/manual/analysis/profiler.md)専用に使用するアロケーター。アプリケーションのアロケーションパターンに干渉しません。以下の設定があります。

| **設定**                  | **説明**                                    | **コマンドライン引数**                                      | **初期値**    |
| ----------------------- | ----------------------------------------- | -------------------------------------------------- | ---------- |
| **プロファイラーブロックサイズ**      | プロファイラーの主要部分のブロックサイズ。                     | `memorysetup-profiler-allocator-block-size`        | `16777216` |
| **エディタープロファイラーブロックサイズ** | プロファイラーのエディター部分のブロックサイズ。これはプレイヤーには存在しません。 | `memorysetup-profiler-editor-allocator-block-size` | バイト        |

### 共有プロファイラーバケットアロケーター##shared-profiler-bucket-allocator

プロファイラーおよびエディタープロファイラーアロケーターの共有バケットアロケーター。メモリ不足のプラットフォームでは使用できません。以下の設定があります。

| **設定**                     | **説明**                                                      | **コマンドライン引数**                                        | **初期値**                                        |
| -------------------------- | ----------------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------- |
| **バケットアロケーター粒度**           | 共有アロケーターのバケットのステップサイズ。                                      | `memorysetup-profiler-bucket-allocator-granularity`  | バイト                                            |
| **バケットアロケーター BucketCount** | バケット サイズの数。例えば、値が 4 の場合、サイズは 16 バイト、32 バイト、48 バイト、64 バイトです。 | `memorysetup-profiler-bucket-allocator-bucket-count` | `8`                                            |
| **バケットアロケーターブロックサイズ**      | バケットに使用されるメモリブロックのサイズ。                                      | `memorysetup-profiler-bucket-allocator-block-size`   | Editor： `33554432` bytesプレイヤー： `4194304` bytes |
| **バケットアロケーターブロック数**        | 割り当てられるブロックの最大数                                             | `memorysetup-profiler-bucket-allocator-block-count`  | エディター: `8`"Player",                            |

## 追加リソース##additional-resources

* [ネイティブメモリアロケーター](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocators.md)
* [ネイティブメモリアロケーターのカスタマイズ](/engine/6000.0/manual/analysis/performance-memory/native-memory/memory-allocator-customization.md)
* [ネイティブ メモリ アロケーター例](/engine/6000.0/manual/analysis/performance-memory/native-memory/allocator-examples.md)
