Skip to content

Commit

Permalink
Update SpriteVisualPool.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Dec 7, 2024
1 parent 72690aa commit 3d0a15d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ internal SpriteVisualPool(int maximumRetained = 200)
this.compositor = CompositionTarget.GetCompositorForCurrentThread();

items = new Queue<SpriteVisual>();
#if NET6_0
clearTimer = new System.Timers.Timer(60000);
#else

clearTimer = new System.Timers.Timer(TimeSpan.FromMinutes(1));
#endif
clearTimer.AutoReset = false;
clearTimer.Elapsed += ClearTimer_Elapsed;
this.maximumRetained = maximumRetained;
Expand Down

0 comments on commit 3d0a15d

Please sign in to comment.