add FIXME note for spatial hash boxing
							parent
							
								
									b0e1ad3cf8
								
							
						
					
					
						commit
						cfd52b00bd
					
				|  | @ -12,6 +12,7 @@ namespace MoonWorks.Collision.Fixed | ||||||
| 		private readonly Fix64 cellSize; | 		private readonly Fix64 cellSize; | ||||||
| 
 | 
 | ||||||
| 		private readonly Dictionary<long, HashSet<T>> hashDictionary = new Dictionary<long, HashSet<T>>(); | 		private readonly Dictionary<long, HashSet<T>> hashDictionary = new Dictionary<long, HashSet<T>>(); | ||||||
|  | 		// FIXME: this ICollidable causes boxing which triggers garbage collection | ||||||
| 		private readonly Dictionary<T, (ICollidable, Transform2D, uint)> IDLookup = new Dictionary<T, (ICollidable, Transform2D, uint)>(); | 		private readonly Dictionary<T, (ICollidable, Transform2D, uint)> IDLookup = new Dictionary<T, (ICollidable, Transform2D, uint)>(); | ||||||
| 
 | 
 | ||||||
| 		public int MinX { get; private set; } = 0; | 		public int MinX { get; private set; } = 0; | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ namespace MoonWorks.Collision.Float | ||||||
| 		private readonly int cellSize; | 		private readonly int cellSize; | ||||||
| 
 | 
 | ||||||
| 		private readonly Dictionary<long, HashSet<T>> hashDictionary = new Dictionary<long, HashSet<T>>(); | 		private readonly Dictionary<long, HashSet<T>> hashDictionary = new Dictionary<long, HashSet<T>>(); | ||||||
|  | 		// FIXME: this ICollidable causes boxing which triggers garbage collection | ||||||
| 		private readonly Dictionary<T, (ICollidable, Transform2D, uint)> IDLookup = new Dictionary<T, (ICollidable, Transform2D, uint)>(); | 		private readonly Dictionary<T, (ICollidable, Transform2D, uint)> IDLookup = new Dictionary<T, (ICollidable, Transform2D, uint)>(); | ||||||
| 
 | 
 | ||||||
| 		public int MinX { get; private set; } = 0; | 		public int MinX { get; private set; } = 0; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue