Order of operations for ACE ballistics/FCS
How to approach improving firing computer ballistics accuracy
Lock down your ballistics first - develop a good ballistic solution that works even in extreme conditions (super low velocity guns or high drag testbeds). Then develop functions to better guess traveltime, then simple lead: offset the aimpoint by the target's velocity and traveltime and subtract. Improving computation accuracy almost always leads to better results.