ViewCullingSystem constructor

ViewCullingSystem({
  1. required GameCamera camera,
  2. double renderRadiusMultiplier = 1.2,
  3. double activeRadiusMultiplier = 2.0,
  4. double hysteresisMargin = 24.0,
  5. @Deprecated('Unused: culling tests every opted-in entity directly, which is ' 'cheaper than keeping a grid in step. Will be removed in 3.0.') double gridCellSize = 256.0,
})

A culler for camera with a render area 1.2× the view, an active area 2× it and a 24-unit hysteresis margin, unless told otherwise. gridCellSize is ignored.

Implementation

ViewCullingSystem({
  required this.camera,
  this.renderRadiusMultiplier = 1.2,
  this.activeRadiusMultiplier = 2.0,
  this.hysteresisMargin = 24.0,
  @Deprecated(
    'Unused: culling tests every opted-in entity directly, which is '
    'cheaper than keeping a grid in step. Will be removed in 3.0.',
  )
  double gridCellSize = 256.0,
});