31-01-2018, 12:15 AM
(This post was last modified: 31-01-2018, 12:15 AM by josemendez.)
(30-01-2018, 11:05 PM)salvetori Wrote: Thanks for the reply Jose, I'll send an email with the scene.
Hi Salvetori,
After taking a look at your scene, I determined that the cause are sudden spikes in the GC collector. This is because your character's skeleton has many more bones than the one in the sample scene, and generates a lot more garbage for the GC to collect periodically.
Luckily, there's a way to reduce the amount of garbage generated when retrieving the bones from Unity. Replace line 577 of ObiCloth.cs:
Code:
for (int p = 0; p < sharedMesh.bindposes.Length; ++p){
with this one:
Code:
for (int p = 0; p < rendererBones.Length; ++p){
That should fix the issue.