I'm experiencing a different issue now. Creating a new
DogfightState object takes about 200ms in debug mode (a little less in release). Because of that you can see a small slowdown when a dogfight is about to be started (just before the zoom in effect).
Does someone have save with four interceptors in Base? He necessary is to tests
Edit
OK, I already have him
https://www.speedshare.org/download.php?id=4086F13A1
Haha, good one ;-). Fixed.
Edit: Don't use that saved game for testing now though. It has the wrong values saved. Well, you can do it but you need to return all crafts to the base and make them intercept again.
Edit2: New build available. Cosmetic changes to code... which may break stuff ;-).
Edit3: Regarding the creation time issue - I'm wondering if the dogfight handling shouldn't be a bit different. Maybe I should create 4 instances of
DogfightState class when the game starts and then just use them when necessary without deleting them? That would make this issue disappear. What do you think? Is the slowdown really frustrating?