ホーム 格闘技 Not Difficult! A Summary of Avatar Optimization

Not Difficult! A Summary of Avatar Optimization

八木 麻衣 八木 麻衣 • 更新: • 公開: • 読了約 28 分
目次

Note
This is a summary of the steps I took when optimizing my avatar!
This is just my personal method, so please take it as a reference!

Introduction

nafb90b6c51e7

I have been a VRChat user for about three and a half years,
and back then, it was normal for avatars to be Very Poor,
and it was considered great if you had managed to reduce the file size... ( ˘•ω•˘ )

However, recently various tools have been developed,
and the methods for modifying and optimizing avatars have changed significantly since then,
making it much easier to do ( •̀ ω •́ )✧

So, in order to adapt to modern environments including tools like Modular Avatar,
I finally got around to it,
and since I also succeeded in optimizing my avatar,
I decided to write this down to share the process!

I hope you'll read through it! (´▽`ʃƪ)

Understanding the Current Situation

Things to Prepare

This time, I am assuming modifications using Modular Avatar, so let's download it via VCC from here! (´∀`)

Also, to perform the optimization, we will download AAO: Avatar Optimizer and

anatawa12’s gist pack for Unity as well!

Once downloaded, make sure to add the packages!


Checking the Current Status

First, let's modify the avatar as your heart desires!
Without thinking about anything, just pour your heart and soul into the avatar!

Become cute! Become cute! chanting that while working, here is the finished result! (◍ ´꒳` ◍)

Now, let's check the performance from here! Select

Tools -> anatawa12's gist selector, check
ActualPerformanceWindow, and click
Apply Changes!

Next, add the
AAO Trace And Optimize component to the Avatar's root (in this case, Kuromitsutou)!
The default settings are fine!

Once that's done, click the Play button in Unity (the one that looks like this: ▷)!
The performance of the built avatar will then be displayed!

Currently, it is Very Poor... 。°(°´ᯅ`°)°。

For now, since we've confirmed the current status,
we will start optimizing
to reach our target performance rank!

Since our goal this time is to reach Medium on PC,
we can see that if we clear the items within the red frame, we should be good to go!

Confirming the Goal

According to the official VRChat documentation, as of February 3, 2025,
the criteria for Medium on PC are as shown in the red frame!

Compared to the current performance,
Polygon count: 85,507 -> 70,000, Material count: 18 -> 16, PhysBone count: 21 -> 16, Number of bones moved by PhysBone: 152 -> 128

if we can achieve these, we should be able to reach Medium!

Now, let's get started with the optimization! (๑•̀ㅂ•́)و✧


Optimization

Things to Prepare

Let's go ahead and install some additional tools that are useful for optimization! (´꒳`)

lilAvatarUtils
This is included when you download lilToon via VCC!

lilNDMFMeshSimplifier
This is also included in lilToon!

Once you've downloaded them, make sure to add the packages~!


Polygon Count

So, let's start by reducing the polygon count!

To reduce the polygon count without degrading the appearance, you should proceed in the order of
1. Delete polygons in hidden areas
2. Reduce the polygon count in visible areas
!

1. Delete polygons in hidden areas

First, regarding "deleting polygons in hidden areas,"
for example, with this avatar, you can see that the upper body is hidden by clothing
and the feet are hidden by shoes or socks!

Mishe-chan doesn't have a back of the head to begin with, but
depending on the avatar, if the back of the head is hidden by hair, it can be deleted!

Cases where you cannot reduce the polygon count using this method
are when the avatar has little fabric and high exposure, etc.
Let's avoid lewd outfits! (๐•̆ ·̭ •̆๐)

Ahem!
Now, we will reduce the polygons, but
AAO Remove Mesh Box can be used to do this easily!

Add the AAO Remove Mesh Box component to the object
that contains the mesh you want to delete!

Then, a red box will appear, so
adjust it by moving, resizing, and rotating it
to cover the area you want to delete!

Now, let's check the performance again!

The polygon count dropped from 85,507 to 76,655, but
it didn't reach the goal of 70,000...

2. Reduce the polygon count in visible areas

So, we will move on to "reducing the polygon count in visible areas"!
Since this method reduces the polygon count by simplifying the mesh,
let's proceed carefully...!

First, let's check the polygon count of the objects!
Open lilAvatarUtils from Tools!

Once you've set your avatar, move to the Renderer tab!
Then, the polygon counts will be displayed in a list!

We will simplify the meshes, focusing on the objects with the highest polygon counts!
However, save the base body for last, as you don't want to degrade its appearance...!

Add the
NDMF Mesh Simplifier component to the object you want to simplify!

You can simplify the mesh by lowering the quality value!
Adjust the settings while checking for visual changes by modifying the Preserve options and the quality value!

If you try to reduce the polygon count with just one object,
the visual degradation will be significant, so I recommend lowering the
quality slightly across multiple objects!

While checking the performance from time to time,
we will work toward the target value of 70,000...!

For now, we've cleared the polygon count target! \(ˊᗜˋ)/
This is how we improve performance one step at a time!

Material count

Next, we'll reduce the number of materials!
This can be solved by merging the meshes!

For example, the hairstyle I'm using this time
has the mesh split into four parts: Back, Front, Inside, and Side,
and since a material is set for each,
the material count is four!

If you merge these into a single mesh,
the material count becomes one, allowing you to reduce it by three!

So, add the
MA Mesh Settings component to the root object of the hairstyle!
Make sure to configure the Anchor Override and Bounds settings!
If you're not sure, I think it's fine to set them
the same as the outfit you set up.

We've cleared the material count target as well!

By the way, if you are not toggling outfits on and off, you can
add MA Mesh Settings to the avatar root
and delete the MA Mesh Settings attached to clothing, etc.,
which will merge meshes other than the face into one, making it even lighter!

If you press the play button or perform Manual bake avatar
you can check the avatar that will ultimately be uploaded to VRChat,
so you can verify how the meshes have been merged!

This is the result after performing Manual bake avatar!
You can see that the hair meshes have become one!


PhysBone-related

Finally, let's reduce the number of PhysBones
and the number of bones swayed by PhysBones!

There are three ways to do this reduction:
1. Disable low-priority PhysBones
2. Merge multiple PhysBones
3. Merge bones swayed by PhysBones

Method 1 reduces both the number of PhysBones and the number of bones swayed by them,
Method 2 reduces only the number of PhysBones, and Method 3 reduces only the number of bones swayed by PhysBones!

1. Disable low-priority PhysBones

This is a simple method; you just disable
PhysBones that don't need to sway!

For example, I felt that the ribbon on the chest had a lower
priority compared to the hair or skirt, so I disabled it!

Doing this will stop the chest ribbon from swaying, but
you can reduce the number of PhysBones and the number of bones swayed by them!

If you check the performance as a test,

PhysBone count: 21 -> 20
Number of bones swayed by PhysBones: 152 -> 141
You can see that they have decreased like this.

2. Merge multiple PhysBones

This method reduces the number of PhysBones by
merging multiple PhysBones into one
when they share the same settings!

For example, this outfit has 12 PhysBone settings for the skirt, and
since 11 of them have the same settings, it looks like they can be merged!

Since each PhysBone can be grabbed individually,
this outfit allows 12 people to grab the skirt at the same time...
(though I doubt that situation would ever happen...)

If you merge them, they become a single PhysBone, so only one can be grabbed.
In other words, you won't be able to grab both ends of the skirt to do a curtsy...

Since I want to be able to curtsy, I'll merge the skirt by left and right sides,
and merge the 12 PhysBones into 4:
front, back, right, and left!

Right-click and select Create Empty to create an empty object,
and place it directly under the outfit's Armature!
I named them Skirt.L_PhysBone, Skirt.R_PhysBone for clarity!

Then, add
AAO Merge PhysBone to Skirt.L_PhysBone and Skirt.R_PhysBone, and add the
left and right side PhysBones of the skirt to their respective components!

When checking the performance, I was able to clear the PhysBone count requirement!
All that remains is the number of bones being moved by PhysBone!


3. Merging bones moved by PhysBone

This method reduces the number of bones by
merging the bones that are being moved by PhysBone!

You can check the number of bones in the lilAvatarUtils PhysBone tab!
Items with a high number of bones are good candidates because merging them has little impact!

For example, there are 13 bones in the hand ribbon~
I don't think reducing the number of bones slightly will affect the appearance much,
so I will merge them!

The method for merging bones is simple: just add the
AAO Merge Bone component to the bones you want to merge!

While playing and checking the movement,
I will set AAO Merge Bone to the bones I want to merge!

And...
I was also able to clear the target value for the bones to be swayed by PhysBone!

With this, I have achieved all the avatar performance targets and
was able to bring it to Medium! Yay!


Texture size

This is unrelated to the optimization this time, but as a bonus, here is a talk about textures!

In the past, it was standard practice to use Crunch compression, but
now Crunch compression is deprecated, so
let's uncheck it and apply it!

Also, since lowering the resolution reduces the avatar file size,
let's lower the resolution for things that can be lowered!

For example, things without fine patterns (like plain knee-high socks) or
things that won't be stared at from a very close distance can be set a bit lower without any issues!
You don't need to be nervous about it, but if you have room, give it a try!

Conclusion

Well, we went through this in a rush, but
did you get a general idea? \(ˊᗜˋ)/
Basically, I think you can handle rank compliance by applying this!

Well, even if you perform optimization,
honestly, there is no effect like the appearance getting better or being able to do more things~

It is nice that you don't have to reluctantly change into a different appearance than usual
for the sake of performance rank at events like concerts!

It comes in handy when going to platforms where Quest support or other conditions are strict!

Why not give it a try when you feel like doing it?
See you later! ヽ(・∀・)ノ


Bonus

Avatars optimized using this method
should be easily compatible with VRM, so please feel free to check that out as well!


同じカテゴリの記事

八木 麻衣
トレンドリサーチャー 八木 麻衣
プロフィールを見る →

全記事の事実確認を担当。一次情報・公式発表・公開資料の三点を確認できない場合は公開を見送る判断をします。

おすすめの関連記事