ホーム 暮らし A Guide to VRChat Optimization!

A Guide to VRChat Optimization!

藤崎 健人 藤崎 健人 • 更新: • 公開: • 読了約 33 分
目次

Update History

n34dbc5d76e3b

2024/1/3 3:10 Published
2024/1/3 12:28 3-4-1 to 3-5-1 added.
2024/1/3 13:03 Some expressions corrected & added.
2024/1/3 17:19 3-4-1 procedure simplified. Some text corrected.
2024/1/4 18:29 Page cover added, some text corrected.
2024/1/6 2:24 5 FAQ added. Some text corrected.

0. Greetings

Hello. I've started this. My name is Nume.
This is my first time writing an article!
Since it's my first time, please forgive any mistakes or unnatural phrasing!
As this is a guide to optimization, I will be talking about optimization this time, but
all the optimization methods introduced here are done using non-destructive tools, so you can easily revert your avatar by deleting the added steps!
Before we get into the main topic, I'd like to share a little of my perspective on optimization.
If you're not interested, feel free to skip to 2.
Please note that I will omit specific explanations about optimization this time as it would become too long.

1. Introduction

When people hear the word optimization, many think it's troublesome or too difficult to do. However, optimization is actually surprisingly easy.
Personally, I think optimization is a kind of etiquette.
Honestly, I think the current situation is that heavy states have become the default, but I believe that as each person performs optimization, we can make things lighter little by little.
I intend to write this article as clearly as possible, so thank you for your support.
The introduction has become long, but I will now explain the optimization process.

2. Preparation for Optimization

I will proceed with the assumption that your avatar is already in Unity.

First, let's prepare the necessary items for optimization.
The necessary items are as follows. You can skip the ones you already have.

  • AAO: Avatar Optimizer

  • anatawa12's gists pack

  • lilAvatarUtils

  • TexTransTool

2-1. Installing AAO: Avatar Optimizer

First, we will install AAO: Avatar Optimizer and anatawa12's gists pack.
Please update VCC to the latest version.
Next, please open the following link.

Once the page is open, click Open

Then, open the VCC window and click Add

If red text appears saying You Have already added this repository. You can't add it again. it means the installation is already complete, so you can skip to 2-2 .

Next, click Projects in the top left,

click Manage Project for your avatar,

Then, find AAO:Avatar Optimizer and anatawa12's gists pack, and click the + mark on the right side.

This completes the installation of AAO:Avatar Optimizer and anatawa12's gists pack.

2-2. Installing lilAvatarUtils

Next, we will install lilAvatarUtils.

Please update VCC to the latest version. If you did this in the previous step, it is not necessary. Next, please open the following link.

Once the page is open, click Open,

Then, open the VCC window and click Add,

If red text appears saying You Have already added this repository. You can't add it again. , it means the installation is already complete, so you can skip to 2-3 .

Next, click Projects in the top left,

Click Manage Project for your avatar,

Then, find lilAvatarUtils and click the + mark on the right side.

This completes the installation of lilAvatarUtils.

2-3. Installing TexTransTool

Finally, we will install TexTransTool. Please update VCC to the latest version. If you did this in the previous step, it is not necessary. Next, please open the following link.

https://ttt.rs64.net/

Then, click Download-VPM,

Once the page is open, click Open,

Then, open the VCC window and click Add,

If red text appears saying You Have already added this repository. You can't add it again. , it means the installation is already complete, so you can skip to 3 .


Next, click on Projects in the top left.

Click on Manage Project for your avatar.

Then, look for TexTransTool and click the + mark on its right side.

This completes the installation of TexTransTool.

3. Actual Optimization

Well, thank you for your hard work on the optimization setup so far.
From here on, we will actually perform the optimization.
For this example, we will use an avatar sold by komado called
"Chiffon" - Original 3D Model - Amato Usagi - BOOTH
.
I will list the items in order of high necessity.
Please have the avatar you want to optimize open in Unity.
As a guide, I have noted the necessity and difficulty levels.

3-1. Basic Knowledge of Optimization

Difficulty: None
Necessity: High

First, as a major premise, if you are going to optimize, stop adding a large number of outfits, hair, and gimmicks.
Ultimately, the best optimization is to have a small number of outfits, hair, and gimmicks actually included.
However, you do not need to force yourself to perform optimizations that are impossible.
For example, cigarette gimmicks sometimes use a light for the lighter.
I don't think it's good to ruin the appearance too much for the sake of optimization.
Now, as examples of the basics of optimization, there are specifically the following things.

  • Keep only one outfit and one hairstyle per avatar.

  • Do not include unnecessary gimmicks.

  • Avoid changing materials with color variations if possible.

  • Keep the number of lights to 0.

  • Set unnecessary GameObjects to EditorOnly. (e.g., underwear if you are not taking off your clothes)

These are some examples. I think there are many others, so I will add them as I find them.

3-2. Enabling ActualPerformanceWindow

Difficulty: Low
Necessity: Medium

First, we will configure anatawa12's gists pack.
If you have already configured it, you can skip to 3-3-1 .

Click Tools → anatawa12's gist selector and

then, find ActualPerformanceWindow in the window that appears, check it, and click Apply Changes.

This completes the configuration of anatawa12's gists pack.
Once finished, you can close anatawa12's gist selector.

By enabling the ActualPerformanceWindow, you can check your avatar's performance rank during Play mode or when uploading without needing to open VRChat.
It is very useful when you are adjusting for optimization yourself, so please make use of it.


3-3-1. AAO Trace And Optimize

This is the gold standard. It is the easiest way to perform various optimizations, and in almost every case, it will not cause your avatar to break. At the very least, I have never had an avatar break because of this.

Difficulty: Low
Necessity: High

First, please click on the avatar object in the Hierarchy.
In my case this time, the prefab name is Chiffon.

Next, go to the bottom of the Inspector tab on the right, click Add Component, and search for and add AAO Trace And Optimize.

With this, the configuration for AAO Trace And Optimize is complete.

3-3-2. AvatarUtils

This optimizes textures.

Difficulty: Medium
Necessity: High

This is also quite important. The resolution will drop slightly, but at the current standard of Quest 3s and Quest 3, the resolution is around 2000x2000, so there is no problem.

First, click in the order of Window → _lil → AvatarUtils ,

next, look at the Resolution, Compression, and Crunch Compressior items written in the window that appeared. Among these, for
Resolution, change the items exceeding 2048 Max Resolution to 2048, for Compression, change those set to High Quality to Normal Quality, and for Crunch Compressior, uncheck all items that are checked.

Finally, press Apply in the upper left to complete the application. Clicking the
reload icon above Apply will reload the display. You may close the
AvatarUtils window.

If any issues occur in the Scene, please try adjusting the settings for the texture that caused the issue.

3-4-1. TTT Atlas Texture

This performs texture atlasing.

Difficulty: Low
Necessity: High

Now, I will introduce some more advanced optimization techniques.
Although I called them advanced, these are actually the ones that often result in significant performance gains.

TTT Atlas Texture can cause issues with some textures, so if there are materials that are not supported, you will need to manually remove them from the list.

Right-click your avatar, then click TextTransTool → TTT AtlasTexture in that order.

If there are outfits or gimmicks that are disabled by default, please check IncludeDisabledRenderer.

Next, click SelectAll inside TTT AtlasTexture in the Inspector on the right.

This completes the TTT Atlas Texture settings.

3-4-2. AAO Merge Skinned Mesh

Skinned Mesh Renderer will be merged.

Difficulty: High
Necessity: High

Important Note 1

Skinned Mesh Renderers applied in this step can no longer be toggled on or off.
Therefore, please adjust them accordingly.

Right-click your avatar, then click Avatar Optimize → Merge Skinned Mesh in that order.

Skinned Mesh Renderer settings should be referenced from the body's Skinned Mesh, etc. Set Mesh to None and Materials to 0.

Then, enable the lock icon in the top right of the Inspector.

Next, click VRChat SDK → Show Control Panel in that order to open the avatar upload screen.

Then, look inside Validations and click Select on the right side of Skinned Mesh Renderer.

Hierarchy Drag and drop the selected Skinned Mesh Renderer into the Merge Skinned Mesh's Skinned Mesh Renderer field labeled None (Skinned Mesh Renderer).

Finally, remove body(face), Merge Skinned Mesh, EditorOnly, and Skinned Mesh Renderer with animations added from AAO Merge Skinned Mesh.

This completes the AAO Merge Skinned Mesh settings.

3-4-3. Additional TTT AtlasTexture Settings

We will now merge the materials.

Difficulty: Medium
Necessity: High

Important Explanation 2

This step assumes you have completed 3-4-1. Also, this step is highly likely to make your avatar look flat. Therefore, if you do not want to lower the quality, please skip to

3-5-1
. Additionally, if multiple shaders are mixed, issues may occur. For example, face transparency effects might stop working.

Project window, right-click Assets, then click Create → Material in that order. A material will then be generated inside Assets. It is a good idea to name it so you can distinguish it from your avatar's shaders. I named mine

lilToon_dummy
.

Next, open the material and change the Shader type from Standard to your avatar's shader. In this case, I will use lilToon.

Then, open Hierarchy and AtlasTexture, then check MaterialMerge and ForceSetTexture.

Finally, change PropertyBakeSetting from Not Bake to Bake, and drag and drop the newly created material into MergeReferenceMaterial's None (Material).

This completes the additional settings for TTT AtlasTexture.

3-5-1. AAO Remove Mesh By BlendShape

Difficulty: Medium
Necessity: Medium

This removes meshes that are hidden by clothing and not visible.
body_base and other body meshes, for example.

First, select the mesh, go to the Inspector tab on the right, click Add Component, and find and add AAO Remove Mesh By BlendShape.

Then, select the BlendShape for the parts hidden by clothing, etc. to remove the mesh. Since the construction differs depending on the avatar, please do your best there. The following is an example for Chiffon-chan.

This completes the AAO Remove Mesh By BlendShape settings.

4. Finally

How was the optimization? I hope you were able to optimize it successfully.

I will update this as I find more optimization information, so please look forward to it.

If there are any mistakes in the article, it would be helpful if you could DM me on X (formerly Twitter)! Well then, thank you for your hard work.

Note: The BluePrintID of the avatar used this time has already been deleted, so please rest assured.

5. Frequently Asked Questions

Q. What is optimization in the first place?

A. Regarding this, the definition of optimization varies from person to person, so there is no set definition of what constitutes optimization, but in this article, we call the act of actually lightening the avatar's processing itself optimization. Even if a Very Poor avatar remains Very Poor as a result of optimization, if the actual processing has become lighter, it can be called optimization.

Q. What is the difference between Quest compatibility and optimization?

A. Quest compatibility is for people who play VRChat on VR alone without using a PC, so that they can see the avatar. There are restrictions when making it Quest compatible, so sometimes optimization is done to avoid those restrictions.

Q. Is it absolutely necessary to optimize?

A. That is not necessarily the case. However, if it becomes lighter, the burden on the other party is reduced, which is a good thing. Currently, I have the impression that not many people are doing proper optimization, so I would be happy if it spreads, including minor optimizations.

Q. Is anything fine as long as it is light?

A. I don't think that's the case. Of course, lighter is better, but optimization that compromises the appearance is not something the person who modified the avatar will be happy with, and it probably won't make the viewer feel very good either. So, let's optimize within a range that doesn't compromise the appearance! Most of the optimizations in this article are also optimizations that do not compromise the appearance!


同じカテゴリの記事

藤崎 健人

芸能取材歴10年のデスク。所属事務所の公式リリース、番組公式サイト、配信サービスの告知を一次情報として採用し、裏付けの取れない内容は記事にしていません。

おすすめの関連記事