ViewCullingSystem constructor
ViewCullingSystem({
- required GameCamera camera,
- double renderRadiusMultiplier = 1.2,
- double activeRadiusMultiplier = 2.0,
- double 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,
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,
});