Dveyee, you don't need to reduce the number of models create per frame. At most one entity is created per frame.

MasterQ32, have you noticed that limit_ent.x is also increased when an entity is created and this variable is also used in the if comparison. At first I had the same thought like you, but I don't think this will happen here. The code is not elegant, but it should work as Dveyee describes, shouldn't it?

Dveeyee, does the number of entities rapidly increase? You can see it in the debug panel as well. It shouldn't.


Always learn from history, to be sure you make the same mistakes again...