Well, at least in WW2 they had mechanical computers that could use the input width of the vessel and the class to estimate the range, heading, and firing angle to set the torpedoes up. There's a good series of youtube videos by a sim player that teaches how to use the TDC: https://www.youtube.com/watch?v=ANk6hZCcVRw - it's very in depth, and demonstrates how much effort it takes to get a firing solution, as you say.
The worst thing is that the TDC's calculation is very much GIGO if you get the Angle On Bow input wrong, and that's the hardest thing to get right.