
Originally Posted by
Ryan
1)
3) You shouldn't use lots of 'always' events, not that it's heavy on memory but that it happens every frame, thats 50 times a second by default. You can optimise by sharing your cpu-heavy events across many frames. Got 60 units that need to follow AI? Rather than have them think every frame, have 20 think on frame 1, 20 think on frame 2, and 20 think on frame 3, then repeat. Your AI doesn't need to have faster-than-human reflexes, the usual human response is 200-400 milliseconds, so a few frames of lag is fine.