「Unity/負荷軽減/Memory」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→メモリ対策) |
(→MemoryProfilerPackageインストール) |
||
| 行7: | 行7: | ||
==MemoryProfilerPackageインストール== | ==MemoryProfilerPackageインストール== | ||
#Unityメインメニュー/Windows/PackageManagerで、MemoryProfilerを検索してインストール。 | #Unityメインメニュー/Windows/PackageManagerで、MemoryProfilerを検索してインストール。 | ||
| + | |||
| + | ===確認=== | ||
| + | 差分確認 | ||
| + | |||
| + | Packages/packages-lock.json | ||
| + | <pre> | ||
| + | + "com.unity.memoryprofiler": { | ||
| + | + "version": "1.1.0", | ||
| + | + "depth": 0, | ||
| + | + "source": "registry", | ||
| + | + "dependencies": { | ||
| + | + "com.unity.editorcoroutines": "1.0.0" | ||
| + | + }, | ||
| + | + "url": "https://packages.unity.com" | ||
| + | + }, | ||
| + | </pre> | ||
| + | |||
| + | Packages/packages-lock.json | ||
| + | <pre> | ||
| + | + "com.unity.memoryprofiler": { | ||
| + | + "version": "1.1.0", | ||
| + | + "depth": 0, | ||
| + | + "source": "registry", | ||
| + | + "dependencies": { | ||
| + | + "com.unity.editorcoroutines": "1.0.0" | ||
| + | + }, | ||
| + | + "url": "https://packages.unity.com" | ||
| + | + }, | ||
| + | </pre> | ||
2023年11月16日 (木) 03:52時点における版
メモリ対策
- プロジェクトを、一旦閉じて開く
- Unityメインメニュー/Windows/Analysis/Profiler/Memory/TotalCommitedMemoryを確認
閉じて、開かないと、メモリが蓄積するので、一度、プロジェクトは閉じる。
MemoryProfilerPackageインストール
- Unityメインメニュー/Windows/PackageManagerで、MemoryProfilerを検索してインストール。
確認
差分確認
Packages/packages-lock.json
+ "com.unity.memoryprofiler": {
+ "version": "1.1.0",
+ "depth": 0,
+ "source": "registry",
+ "dependencies": {
+ "com.unity.editorcoroutines": "1.0.0"
+ },
+ "url": "https://packages.unity.com"
+ },
Packages/packages-lock.json
+ "com.unity.memoryprofiler": {
+ "version": "1.1.0",
+ "depth": 0,
+ "source": "registry",
+ "dependencies": {
+ "com.unity.editorcoroutines": "1.0.0"
+ },
+ "url": "https://packages.unity.com"
+ },
