Skip to content

Commit

Permalink
Stop running garbage collection for a smoother recording start
Browse files Browse the repository at this point in the history
  • Loading branch information
acidbubbles committed Nov 23, 2022
1 parent 28b2901 commit ec73d50
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/AtomAnimations/Operations/RecordOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ private void BeforeRecording(List<ICurveAnimationTarget> targets, bool recordExt
{
target.IncreaseCapacity(90 * (int)(recordExtendsLength ? 60 : target.GetLeadCurve().duration.Snap(1)));
}

GC.Collect();
}

private void StartRecording(int timeMode, bool recordExtendsLength, List<ICurveAnimationTarget> targets)
Expand Down Expand Up @@ -227,7 +225,6 @@ private void AfterRecording(List<ICurveAnimationTarget> targets)
target.EndBulkUpdates();
}

GC.Collect();
_clip.clipTime = Mathf.Min(_clip.animationLength, _clip.clipTime).Snap();
}

Expand Down

0 comments on commit ec73d50

Please sign in to comment.