Fixing some warnings (#6250)

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
wrexbe
2022-01-21 01:38:35 -08:00
committed by GitHub
parent 29b22e2871
commit cea1b21832
191 changed files with 341 additions and 340 deletions

View File

@@ -1,4 +1,4 @@
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;
using Robust.Shared.Maths;
using Robust.Shared.Physics;
@@ -7,7 +7,7 @@ namespace Content.Benchmarks
[SimpleJob, MemoryDiagnoser]
public class DynamicTreeBenchmark
{
private static readonly Box2[] aabbs1 =
private static readonly Box2[] _aabbs1 =
{
((Box2) default).Enlarged(1), //2x2 square
((Box2) default).Enlarged(2), //4x4 square
@@ -37,11 +37,11 @@ namespace Content.Benchmarks
public void Setup()
{
_b2Tree = new B2DynamicTree<int>();
_tree = new DynamicTree<int>((in int value) => aabbs1[value], capacity: 16);
_tree = new DynamicTree<int>((in int value) => _aabbs1[value], capacity: 16);
for (var i = 0; i < aabbs1.Length; i++)
for (var i = 0; i < _aabbs1.Length; i++)
{
var aabb = aabbs1[i];
var aabb = _aabbs1[i];
_b2Tree.CreateProxy(aabb, i);
_tree.Add(i);
}