optimized the frustum culling