「Unity/負荷軽減/Memory」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→MemoryProfilerPackageインストール) |
(→確認) |
||
| 行36: | 行36: | ||
+ }, | + }, | ||
</pre> | </pre> | ||
| + | |||
| + | ==Texture2Dについて== | ||
| + | MaxSize:2048 | ||
| + | ResizeAlgorithm:mitchell | ||
| + | Format:Automatic | ||
| + | Compression:NormalQuality | ||
| + | UseCrunchCompression:off | ||
2023年11月19日 (日) 08:22時点における版
メモリ対策
- プロジェクトを、一旦閉じて開く
- 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"
+ },
Texture2Dについて
MaxSize:2048 ResizeAlgorithm:mitchell Format:Automatic Compression:NormalQuality UseCrunchCompression:off
