Help Me Optimize My Entity System

Ive made an entity system that can handle over 5000 enemies before seeing a major performance drop