Maybe it's the ent_create command that slowdown your game. Do you spawn multiple enemies, alot of enemies, one after another?