Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved removeUnnecessaryJoints #256

Merged
merged 5 commits into from
Dec 27, 2019
Merged

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Nov 22, 2019

removeUnnecessaryJoints が恐ろしいほどのメモリリークを起こしていたため、これを改善しました。
重いモデルにおいては、これで四分の一くらいのメモリ使用量の改善が見込めます。

また、examplesにremoveUnnecessaryJointsを使うようにしました。


Breaking Changes

removeUnnecessaryJoints -> VRMUtils.removeUnnecessaryJoints

@0b5vr 0b5vr added the performance Performance issue label Nov 22, 2019
@0b5vr 0b5vr requested a review from yomotsu November 22, 2019 07:34
@0b5vr 0b5vr self-assigned this Nov 22, 2019
examples/basic.html Outdated Show resolved Hide resolved
@0b5vr
Copy link
Contributor Author

0b5vr commented Nov 25, 2019

#252 をマージしてみたところ、 dnd.html でモデルを読み込むたびのメモリリークは、 console.log( vrm ) を消せばほぼ発生しなくなりました。
重めのモデルで検証したところ、600MB程度あったメモリ消費量が78MBまで落ちました。

@0b5vr 0b5vr added this to the v0.3.0 milestone Dec 12, 2019
@yomotsu
Copy link
Contributor

yomotsu commented Dec 15, 2019

すごい!

Copy link
Contributor

@yomotsu yomotsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名前空間をどうするかが解消したのでよさそうです!

@0b5vr
Copy link
Contributor Author

0b5vr commented Dec 27, 2019

よしきた

@0b5vr 0b5vr merged commit 23e8236 into dev Dec 27, 2019
@0b5vr 0b5vr deleted the improved-remove-unnecessary-joints branch December 27, 2019 07:53
@0b5vr 0b5vr added the Breaking Change Choose wisely label Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change Choose wisely performance Performance issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants