So I’m working on my game and its enemies run on physics. Right now they are just cubes. They spawn and force is applied to them and they are pushed along towards the player to attack when in range.
I am hitting a wall with enemy counts at around 500. Any more than that and the frame rate starts to take a nose dive. Its seem weird to me though that even if I add in more complicated lighting or textures the frame rate stays the same. I guess its not to weird since physics is most likely computed in one place and rendering of those things in another. So I guess my main question is:
Does anyone know what I could do to reduce the lag in physics computations so I can get more enemies on screen?
Thank you so much for any help