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

Suppress gabage collection due to using linq #413

Merged
merged 2 commits into from
May 26, 2020

Conversation

Kohei-Yanagida
Copy link
Collaborator

  • LINQ構文使用によってVRMロード時に発生していたGCを抑制

.Select(x => x.GetComponent<Renderer>())
.Where(x => x != null)
.Select(x => new RendererFirstPersonFlags
var rendererComponents = transform.GetComponentsInChildren<Renderer>();
Copy link
Contributor

Choose a reason for hiding this comment

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

念のためTraverseとGetComponentsInChildrenが同じ結果になることをテストに追加していただけますか?

Copy link
Contributor

Choose a reason for hiding this comment

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

と思いましたがここは順番が関係なさそうなのでこのままで大丈夫です

@hiroj hiroj merged commit ab4cf96 into vrm-c:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants