Skip to content

Commit

Permalink
Remove some debug console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Oct 23, 2024
1 parent d1f1540 commit 0b56dfd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion SightKeeper.Application/Screenshotting/Screenshotter`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ protected override void MakeScreenshots(ActionContext context)
else
contextEliminated = !context.Alive;
stopwatch.Stop();
Console.WriteLine($"Elapsed: {stopwatch.Elapsed.TotalMilliseconds:N1}ms");
}
}
}
5 changes: 0 additions & 5 deletions SightKeeper.Avalonia/WriteableBitmapPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ public WriteableBitmap Rent(PixelSize size, PixelFormat? format = null)
BitmapArchetype archetype = new(size, format);
var bag = GetOrCreateBag(archetype);
if (bag.TryTake(out var bitmap))
{
Console.WriteLine($"Rented: {archetype}");
return bitmap;
}
Console.WriteLine($"Allocated: {archetype}");
return new WriteableBitmap(size, DPI, format);
}

Expand All @@ -28,7 +24,6 @@ public void Return(WriteableBitmap bitmap)
BitmapArchetype archetype = new(bitmap.PixelSize, bitmap.Format);
var bag = GetOrCreateBag(archetype);
bag.Add(bitmap);
Console.WriteLine($"Returned: {archetype}");
}

private static readonly Vector DPI = new(96, 96);
Expand Down

0 comments on commit 0b56dfd

Please sign in to comment.