SDK avatar performance reports always report dynamic bone counts as 0
complete
hakanai
SDK version: 2018.12.19.17.03
Dynamic Bone version: 1.2.0
In Unity, my avatar performance reports as Medium. In-game, it's Very Poor.
The difference was just Dynamic Bone - the SDK always reports 0, in game I get the corr-- well, I get a number that isn't 0, anyway.
Investigation:
There's this check in AvatarPerformance:
if (collidersFieldInfo == null || collidersFieldInfo.FieldType.GetGenericTypeDefinition() != typeof(List<>) || collidersFieldInfo.FieldType.GetGenericArguments().Single() != dyBoneColliderType)
return;
The check returns true and exits without setting the fields, because:
* dyBoneColliderType == DynamicBoneCollider
* collidersFieldInfo.FieldType.GetGenericArguments().Single() == DynamicBoneColliderBase
Log In
Fax
marked this post as
complete
Dynamic bones have been replaced by PhysBones!
Please let us know if you encounter any related issues.
misakiii
I think this is fixed now?
Noe
Merged in a post:
VRCSDK only detects Dynamic Bones if they're an old version of the script
Lightning Test
Since almost everyone pirated an old version of the script it probably doesn't affect them, but I purchased it from the Asset Store and while they are detected in-game, the SDK stats in Unity pre-upload only reflect the Dynamic Bone stats if I import an old version from one of my projects from early last year.
Noe
Merged in a post:
Editor's dynamic bone counts are always zero if you use the version from the asset store.
Adeon Writer
For some reason.
Lyuma
AvatarPerformance.cs FindDynamicBoneTypes() uses reflection to lookup the type for "DynamicBoneCollider". If null, it should check for a type named "DynamicBoneColliderBase" to work for the newer version of DynamicBone from the asset store.
Adeon Writer
I have the opposite problem I loaded in a model with a ton of dynamic bones and they show up, but as I delete dyn bones scripts the count isn’t going down.
Denwa
Yeah I also noticed this issue. I have 15 dynamic bones, but it shows as 0. It shows properly in game though.
Lightning Test
Denwa: FYI it's because you need to use the old version of the Dynamic Bone script. Most of the people who pirated the script don't have any problems--we who paid and got the newest version from the Asset Store suffer.
Denwa
Lightning Test: I bought mine from the asset store almost 1 year ago. It was one of the first things I bought, among many more assets, when I started to get into avatar creation. So it being outdated might be more realistic.
BranVR
Im getting a similar issue, but for me the dynamic bones not only don't show up in the performance part in unity, but they also straight up don't work or show in the performance stats in game.