Heya,
I've got some randomly generated levels going on. Trees are included. All of the trees are actors, however, and when I have a bunch of trees on-screen, I get ridiculous lag.
I've read up and I see a lot of "change each of the actors to images and you won't have lag."
But I need them to be actors! One, for collision, and two, for interaction (chopping down).
They don't have any "when updating" events or anything like that, just a single "when created" statement that kills itself with a 2 in 7 chance (to thin out the forest areas a bit).
I'm assuming it's the collision checking, but it could also be something else. What can I do to reduce the lag? And I'm gonna have other actors later as well, for blocks/furniture/workbenches/more plants, etc. so I'm going to need a way to reduce the lag for every type of place-able actor.
So, how do I reduce lag while retaining the functionality of actors?