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

Remove unnecessary vertices #880

Merged
merged 4 commits into from
Jan 6, 2022
Merged

Remove unnecessary vertices #880

merged 4 commits into from
Jan 6, 2022

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Dec 28, 2021

Description

Add a new utility function VRMUtils.removeUnnecessaryVertices.

This is to address the issue that morph textures consumes gigantic amount of VRAM.
See comments for more details.

I probably have to apply this also for the current v0.x stream.

See: mrdoob/three.js#23095

Points need review

  • TBD

@0b5vr 0b5vr added performance Performance issue VRM 1.0 labels Dec 28, 2021
@0b5vr 0b5vr added this to the VRM 1.0 milestone Dec 28, 2021
@0b5vr 0b5vr self-assigned this Dec 28, 2021
@0b5vr
Copy link
Contributor Author

0b5vr commented Dec 28, 2021

We can finally arm ourselves with r133 VTF morph targets, which enables us to use 8 or more morphs at the same time. Shoutouts to perfect sync community

Copy link
Contributor

@nyamadan nyamadan left a comment

Choose a reason for hiding this comment

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

typoだけ修正提案させていただきました。

let indexHead = 0;

for (let i = 0; i < originalIndexArray.length; i++) {
const originalIndex = originalIndexArray[i];
Copy link
Contributor

Choose a reason for hiding this comment

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

メモ

この処理でindexの最大値が減る。そのため各種attributeの大きさを減る。

0b5vr and others added 2 commits January 6, 2022 18:35
Copy link
Contributor

@nyamadan nyamadan left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance issue VRM 1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants