Implemented offscreen entity culling.