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

Better activeness animation #880

Merged
merged 6 commits into from
Jan 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -100,10 +100,9 @@ public void Init(GCComponentInfo info)
public MeshInfo2 GetMeshInfoFor(SkinnedMeshRenderer renderer) =>
_collector._session.GetMeshInfoFor(renderer);

public override void MarkEntrypoint() => _info.EntrypointComponent = true;

public override void MarkHeavyBehaviour() => _info.HeavyBehaviourComponent = true;
public override void MarkBehaviour() => _info.BehaviourComponent = true;
public override void MarkEntrypoint() => _info.MarkEntrypoint();
public override void MarkHeavyBehaviour() => _info.MarkHeavyBehaviour();
public override void MarkBehaviour() => _info.MarkBehaviour();

private API.ComponentDependencyInfo AddDependencyInternal(
[NotNull] GCComponentInfo info,
5 changes: 5 additions & 0 deletions Editor/Processors/TraceAndOptimize/GCComponentInfo.cs
Original file line number Diff line number Diff line change
@@ -113,6 +113,11 @@ public GCComponentInfo(Component component, bool? activeness)
Activeness = activeness;
}


public void MarkEntrypoint() => EntrypointComponent = true;
public void MarkHeavyBehaviour() => HeavyBehaviourComponent = true;
public void MarkBehaviour() => BehaviourComponent = true;

[Flags]
public enum DependencyType : byte
{