the proper midi port setting for you could either be DirectMusic (Timestamp either checked or unchecked) or it could be Windows MIDI (Timestamp either checked or unchecked). it's worth it once u figure out which setting works for you). you just have to figure out which setting works for your system based on trial and error (not really a big pain in the ass. you can either check off 'Use System Timestamp' or not. either 1) DirectMusic or 2) Windows MIDI (at least for me there were only two types).
There are two types of ports you can use. The problem is with the MIDI port you're using (and i'm assuming this might be the case w/ FL Studio also, though i'm not 100% sure). and it wasn't me just being off-beat either lol. pain in the ass and is very unmotivating. It sounded a hot mess and I had to spend countless minutes just moving midi notes. They were so off beat that when I quantized, it didn't even quantize properly. but when I went to take a look at the playback. The problem I had was that my audio was being recorded on time (there was negligible latency). and it took about 2 months to figure out the fix.