Add occlusion culling for object logic
capalmer1013 opened this issue · 0 comments
capalmer1013 commented
add culling for executing logic every frame only if objects are in frame
- add occasional update that can round robin-like only execute game logic for a handful of objects when they are close to the frame
- should update more frequently the closer they are to the camera view
- update every frame when in camera view
- store number of updates since last updated
- when update needs to happen just run update function that many times (could cause problems with collision detection) (don't want bears walking through walls when they're out of frame)