CLIPPED eflag is set when an entity is out of the view range, but I am afraid it will not help you. 1 million entities is crazy.