Skip to content

Commit

Permalink
Minor clean up in DebugProfiler
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume committed May 3, 2024
1 parent 593d55d commit 60d96bc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Packages/MinimalUtility/Runtime/R3/DebugProfiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ private readonly IReadOnlyDictionary<MemoryUnit, string> memoryUnitStrings
{ MemoryUnit.GB, "GB" }
};

/// <summary>
/// 使いまわせるStringBuilder.
/// </summary>
private readonly StringBuilder sb = new StringBuilder();

/// <summary>
/// このクラスのインスタンスが破棄されたときに同時に破棄される購読.
/// </summary>
Expand All @@ -94,6 +89,7 @@ public void Start()
subscription?.Dispose();

TimeSpan interval = TimeSpan.FromSeconds(IntervalSecs);
StringBuilder sb = new StringBuilder();

Observable.Timer(interval, interval, UnityTimeProvider.UpdateRealtime)
.Select(UnityFrameProvider.Update, (_, provider) => provider.GetFrameCount())
Expand Down

0 comments on commit 60d96bc

Please sign in to comment.